Skip to content

Commit e50f960

Browse files
tobluxidryomov
authored andcommitted
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>
1 parent 64cf95d commit e50f960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ceph/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static int status_show(struct seq_file *s, void *p)
357357

358358
seq_printf(s, "instance: %s.%lld %s/%u\n", ENTITY_NAME(inst->name),
359359
ceph_pr_addr(client_addr), le32_to_cpu(client_addr->nonce));
360-
seq_printf(s, "blocklisted: %s\n", fsc->blocklisted ? "true" : "false");
360+
seq_printf(s, "blocklisted: %s\n", str_true_false(fsc->blocklisted));
361361

362362
return 0;
363363
}

0 commit comments

Comments
 (0)