Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Thorsten Blum and committed by
Madhavan Srinivasan
6dca1d3a 2a17a5be

+3 -3
+3 -3
arch/powerpc/xmon/xmon.c
··· 2623 2623 2624 2624 printf("paca for cpu 0x%x @ %px:\n", cpu, p); 2625 2625 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))); 2629 2629 2630 2630 #define DUMP(paca, name, format) \ 2631 2631 printf(" %-*s = "format"\t(0x%lx)\n", 25, #name, 18, paca->name, \