[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20241129173337.57890-2-thorsten.blum@linux.dev>
Date: Fri, 29 Nov 2024 18:33:35 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Michael Ellerman <mpe@...erman.id.au>,
Nicholas Piggin <npiggin@...il.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Naveen N Rao <naveen@...nel.org>,
Madhavan Srinivasan <maddy@...ux.ibm.com>,
"Mike Rapoport (Microsoft)" <rppt@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Cédric Le Goater <clg@...d.org>,
Mukesh Kumar Chaurasiya <mchauras@...ux.ibm.com>,
Peter Xu <peterx@...hat.com>,
Greg Kurz <groug@...d.org>,
Shrikanth Hegde <sshegde@...ux.ibm.com>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...ux.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
Powered by blists - more mailing lists