lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C127DEECDA287C8+20241017032010.96772-1-wangyuli@uniontech.com>
Date: Thu, 17 Oct 2024 11:20:10 +0800
From: WangYuli <wangyuli@...ontech.com>
To: paul.walmsley@...ive.com,
	palmer@...belt.com,
	aou@...s.berkeley.edu,
	samuel.holland@...ive.com,
	conor.dooley@...rochip.com,
	charlie@...osinc.com,
	macro@...am.me.uk,
	palmer@...osinc.com
Cc: linux-riscv@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	atish.patra@....com,
	anup@...infault.org,
	guanwentao@...ontech.com,
	zhanjun@...ontech.com,
	tglx@...utronix.de,
	peterz@...radead.org,
	mikelley@...rosoft.com,
	oleksandr@...alenko.name,
	deller@....de,
	gpiccoli@...lia.com,
	apatel@...tanamicro.com,
	maz@...nel.org,
	kernelfans@...il.com,
	jszhang@...nel.org,
	daniel.lezcano@...aro.org,
	Alistair.Francis@....com,
	atishp@...shpatra.org,
	dwmw2@...radead.org,
	mark.rutland@....com,
	sabrapan@...zon.com,
	ross.philipson@...cle.com,
	WangYuli <wangyuli@...ontech.com>
Subject: [RESEND. PATCH v2] 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@...ontech.com>
Suggested-by: Maciej W. Rozycki <macro@...am.me.uk>
Link: https://lore.kernel.org/all/alpine.DEB.2.21.2409122309090.40372@angie.orcam.me.uk/
Signed-off-by: WangYuli <wangyuli@...ontech.com>
Reviewed-by: Charlie Jenkins <charlie@...osinc.com>
Tested-by: Charlie Jenkins <charlie@...osinc.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.45.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ