All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND. PATCH] riscv: Use '%u' to format the output of 'cpu'
@ 2024-09-12 13:49 ` WangYuli
  0 siblings, 0 replies; 10+ messages in thread
From: WangYuli @ 2024-09-12 13:49 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, samuel.holland, conor.dooley
  Cc: linux-riscv, linux-kernel, atish.patra, anup, guanwentao, zhanjun,
	WangYuli

'cpu' is an unsigned integer, so its placeholder should be %u, not %d.

Suggested-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
---
 arch/riscv/kernel/cpu-hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/cpu-hotplug.c b/arch/riscv/kernel/cpu-hotplug.c
index 28b58fc5ad19..a1e38ecfc8be 100644
--- a/arch/riscv/kernel/cpu-hotplug.c
+++ b/arch/riscv/kernel/cpu-hotplug.c
@@ -58,7 +58,7 @@ void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)
 	if (cpu_ops->cpu_is_stopped)
 		ret = cpu_ops->cpu_is_stopped(cpu);
 	if (ret)
-		pr_warn("CPU%d may not have stopped: %d\n", cpu, ret);
+		pr_warn("CPU%u may not have stopped: %d\n", cpu, ret);
 }
 
 /*
-- 
2.43.4


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-09-13  3:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12 13:49 [RESEND. PATCH] riscv: Use '%u' to format the output of 'cpu' WangYuli
2024-09-12 13:49 ` WangYuli
2024-09-12 20:37 ` Charlie Jenkins
2024-09-12 20:37   ` Charlie Jenkins
2024-09-13  3:11   ` WangYuli
2024-09-13  3:11     ` WangYuli
2024-09-12 22:12 ` Maciej W. Rozycki
2024-09-12 22:12   ` Maciej W. Rozycki
2024-09-13  2:51   ` WangYuli
2024-09-13  2:51     ` WangYuli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.