Skip to content

Commit e0872ab

Browse files
Avenger-285714palmer-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 <[email protected]> Suggested-by: Maciej W. Rozycki <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: WangYuli <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Tested-by: Charlie Jenkins <[email protected]> Fixes: f1e5858 ("RISC-V: Support cpu hotplug") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 3723316 commit e0872ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)