* [PATCH] powerpc/xmon: Use str_yes_no() helper in dump_one_paca()
@ 2024-11-29 17:33 Thorsten Blum
2024-12-13 3:20 ` Madhavan Srinivasan
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2024-11-29 17:33 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy, Naveen N Rao,
Madhavan Srinivasan, Mike Rapoport (Microsoft), Andrew Morton,
Cédric Le Goater, Mukesh Kumar Chaurasiya, Peter Xu,
Greg Kurz, Shrikanth Hegde
Cc: Thorsten Blum, linuxppc-dev, linux-kernel
Remove hard-coded strings by using the str_yes_no() helper function.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/powerpc/xmon/xmon.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index e6cddbb2305f..6c84169b309d 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -2623,9 +2623,9 @@ static void dump_one_paca(int cpu)
printf("paca for cpu 0x%x @ %px:\n", cpu, p);
- printf(" %-*s = %s\n", 25, "possible", cpu_possible(cpu) ? "yes" : "no");
- printf(" %-*s = %s\n", 25, "present", cpu_present(cpu) ? "yes" : "no");
- printf(" %-*s = %s\n", 25, "online", cpu_online(cpu) ? "yes" : "no");
+ printf(" %-*s = %s\n", 25, "possible", str_yes_no(cpu_possible(cpu)));
+ printf(" %-*s = %s\n", 25, "present", str_yes_no(cpu_present(cpu)));
+ printf(" %-*s = %s\n", 25, "online", str_yes_no(cpu_online(cpu)));
#define DUMP(paca, name, format) \
printf(" %-*s = "format"\t(0x%lx)\n", 25, #name, 18, paca->name, \
--
2.47.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] powerpc/xmon: Use str_yes_no() helper in dump_one_paca()
2024-11-29 17:33 [PATCH] powerpc/xmon: Use str_yes_no() helper in dump_one_paca() Thorsten Blum
@ 2024-12-13 3:20 ` Madhavan Srinivasan
0 siblings, 0 replies; 2+ messages in thread
From: Madhavan Srinivasan @ 2024-12-13 3:20 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy, Naveen N Rao,
Mike Rapoport (Microsoft), Andrew Morton, Cédric Le Goater,
Mukesh Kumar Chaurasiya, Peter Xu, Greg Kurz, Shrikanth Hegde,
Thorsten Blum
Cc: Madhavan Srinivasan, linuxppc-dev, linux-kernel
On Fri, 29 Nov 2024 18:33:35 +0100, Thorsten Blum wrote:
> Remove hard-coded strings by using the str_yes_no() helper function.
>
>
Applied to powerpc/next.
[1/1] powerpc/xmon: Use str_yes_no() helper in dump_one_paca()
https://git.kernel.org/powerpc/c/6dca1d3af16a82552294596b66fee9e13eed0795
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-13 3:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-29 17:33 [PATCH] powerpc/xmon: Use str_yes_no() helper in dump_one_paca() Thorsten Blum
2024-12-13 3:20 ` Madhavan Srinivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).