mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
ceph: Use str_true_false() helper in status_show()
Remove hard-coded strings by using the str_true_false() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
parent
64cf95d0b1
commit
e50f960bea
@ -357,7 +357,7 @@ static int status_show(struct seq_file *s, void *p)
|
||||
|
||||
seq_printf(s, "instance: %s.%lld %s/%u\n", ENTITY_NAME(inst->name),
|
||||
ceph_pr_addr(client_addr), le32_to_cpu(client_addr->nonce));
|
||||
seq_printf(s, "blocklisted: %s\n", fsc->blocklisted ? "true" : "false");
|
||||
seq_printf(s, "blocklisted: %s\n", str_true_false(fsc->blocklisted));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user