Skip to content

Commit e0872ab

Browse files
WangYulipalmer-dabbelt
authored andcommitted
riscv: Use '%u' to format the output of 'cpu'
'cpu' is an unsigned integer, so its conversion specifier should be %u, not %d. Suggested-by: Wentao Guan <guanwentao@uniontech.com> Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk> Link: https://lore.kernel.org/all/alpine.DEB.2.21.2409122309090.40372@angie.orcam.me.uk/ Signed-off-by: WangYuli <wangyuli@uniontech.com> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Tested-by: Charlie Jenkins <charlie@rivosinc.com> Fixes: f1e5858 ("RISC-V: Support cpu hotplug") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/4C127DEECDA287C8+20241017032010.96772-1-wangyuli@uniontech.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 3723316 commit e0872ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/cpu-hotplug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void arch_cpuhp_cleanup_dead_cpu(unsigned int cpu)
5858
if (cpu_ops->cpu_is_stopped)
5959
ret = cpu_ops->cpu_is_stopped(cpu);
6060
if (ret)
61-
pr_warn("CPU%d may not have stopped: %d\n", cpu, ret);
61+
pr_warn("CPU%u may not have stopped: %d\n", cpu, ret);
6262
}
6363

6464
/*

0 commit comments

Comments
 (0)