mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-07 15:09:15 +08:00
hpet: Fix the wrong format specifier
The unsigned int should use "%u" instead of "%d". Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> Link: https://lore.kernel.org/r/20240905065159.45774-1-zhangjiao2@cmss.chinamobile.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
89ec686a17
commit
619bac6a97
@@ -865,11 +865,11 @@ int hpet_alloc(struct hpet_data *hdp)
|
||||
do_div(temp, period);
|
||||
hpetp->hp_tick_freq = temp; /* ticks per second */
|
||||
|
||||
printk(KERN_INFO "hpet%d: at MMIO 0x%lx, IRQ%s",
|
||||
printk(KERN_INFO "hpet%u: at MMIO 0x%lx, IRQ%s",
|
||||
hpetp->hp_which, hdp->hd_phys_address,
|
||||
hpetp->hp_ntimer > 1 ? "s" : "");
|
||||
for (i = 0; i < hpetp->hp_ntimer; i++)
|
||||
printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
|
||||
printk(KERN_CONT "%s %u", i > 0 ? "," : "", hdp->hd_irq[i]);
|
||||
printk(KERN_CONT "\n");
|
||||
|
||||
temp = hpetp->hp_tick_freq;
|
||||
|
||||
Reference in New Issue
Block a user