aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2024-11-12 22:14:39 +0100
committerIlya Dryomov <idryomov@gmail.com>2024-11-18 17:34:36 +0100
commite50f960bea7a25da0848fa8e1eec715670c4be70 (patch)
treecc147169b44a0a90ccd9dda9a1c0f85bf8649f0f
parentceph: requalify some char pointers as const (diff)
downloadwireguard-linux-e50f960bea7a25da0848fa8e1eec715670c4be70.tar.xz
wireguard-linux-e50f960bea7a25da0848fa8e1eec715670c4be70.zip
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>
Diffstat (limited to '')
-rw-r--r--fs/ceph/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c
index 24c08078f5aa..fdf9dc15eafa 100644
--- a/fs/ceph/debugfs.c
+++ b/fs/ceph/debugfs.c
@@ -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;
}