[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241204143322.7772-1-liujing@cmss.chinamobile.com>
Date: Wed, 4 Dec 2024 22:33:22 +0800
From: liujing <liujing@...s.chinamobile.com>
To: tglx@...utronix.de,
mingo@...hat.com,
bp@...en8.de,
dave.hansen@...ux.intel.com,
x86@...nel.org,
hpa@...or.com,
mat.jonczyk@...pl,
rdunlap@...radead.org
Cc: bhelgaas@...gle.com,
mario.limonciello@....com,
linux-kernel@...r.kernel.org,
liujing <liujing@...s.chinamobile.com>
Subject: [PATCH] arch/x86: Fix the wrong format specifier
Make a minor change to eliminate a static checker warning. The type
of 'i' is unsigned int, so the correct format specifier should be
%u instead of %d.
Signed-off-by: liujing <liujing@...s.chinamobile.com>
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
index c96ae8fee95e..d2cc52530f7f 100644
--- a/arch/x86/kernel/hpet.c
+++ b/arch/x86/kernel/hpet.c
@@ -728,7 +728,7 @@ static void __init hpet_select_clockevents(void)
if (!(hc->boot_cfg & HPET_TN_FSB_CAP))
continue;
- sprintf(hc->name, "hpet%d", i);
+ sprintf(hc->name, "hpet%u", i);
irq = hpet_assign_irq(hpet_domain, hc, hc->num);
if (irq <= 0)
--
2.27.0
Powered by blists - more mailing lists