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:
Thorsten Blum 2024-11-12 22:14:39 +01:00 committed by Ilya Dryomov
parent 64cf95d0b1
commit e50f960bea

View File

@ -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;
}