]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ceph: Use str_true_false() helper in status_show()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 12 Nov 2024 21:14:39 +0000 (22:14 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 18 Nov 2024 16:34:36 +0000 (17:34 +0100)
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>
fs/ceph/debugfs.c

index 24c08078f5aa3e49d6d1bea454e503cbc1810019..fdf9dc15eafaefcc63be128c23b5339475163b79 100644 (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;
 }