[PATCH] arch/x86: Fix the wrong format specifier
From: liujing
Date: Wed Dec 04 2024 - 09:33:50 EST
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@xxxxxxxxxxxxxxxxxxxx>
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