Skip to content

Commit

Permalink
ceph: Use str_true_false() helper in status_show()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thorsten Blum authored and Ilya Dryomov committed Nov 18, 2024
1 parent 64cf95d commit e50f960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ceph/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e50f960

Please sign in to comment.