Skip to content

Commit 6dca1d3

Browse files
tobluxmaddy-kerneldev
authored andcommitted
powerpc/xmon: Use str_yes_no() helper in dump_one_paca()
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20241129173337.57890-2-thorsten.blum@linux.dev
1 parent 2a17a5b commit 6dca1d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/powerpc/xmon/xmon.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,9 +2623,9 @@ static void dump_one_paca(int cpu)
26232623

26242624
printf("paca for cpu 0x%x @ %px:\n", cpu, p);
26252625

2626-
printf(" %-*s = %s\n", 25, "possible", cpu_possible(cpu) ? "yes" : "no");
2627-
printf(" %-*s = %s\n", 25, "present", cpu_present(cpu) ? "yes" : "no");
2628-
printf(" %-*s = %s\n", 25, "online", cpu_online(cpu) ? "yes" : "no");
2626+
printf(" %-*s = %s\n", 25, "possible", str_yes_no(cpu_possible(cpu)));
2627+
printf(" %-*s = %s\n", 25, "present", str_yes_no(cpu_present(cpu)));
2628+
printf(" %-*s = %s\n", 25, "online", str_yes_no(cpu_online(cpu)));
26292629

26302630
#define DUMP(paca, name, format) \
26312631
printf(" %-*s = "format"\t(0x%lx)\n", 25, #name, 18, paca->name, \

0 commit comments

Comments
 (0)