Skip to content

Commit 619bac6

Browse files
zhang jiaogregkh
authored andcommitted
hpet: Fix the wrong format specifier
The unsigned int should use "%u" instead of "%d". Signed-off-by: zhang jiao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 89ec686 commit 619bac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/char/hpet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,11 @@ int hpet_alloc(struct hpet_data *hdp)
865865
do_div(temp, period);
866866
hpetp->hp_tick_freq = temp; /* ticks per second */
867867

868-
printk(KERN_INFO "hpet%d: at MMIO 0x%lx, IRQ%s",
868+
printk(KERN_INFO "hpet%u: at MMIO 0x%lx, IRQ%s",
869869
hpetp->hp_which, hdp->hd_phys_address,
870870
hpetp->hp_ntimer > 1 ? "s" : "");
871871
for (i = 0; i < hpetp->hp_ntimer; i++)
872-
printk(KERN_CONT "%s %d", i > 0 ? "," : "", hdp->hd_irq[i]);
872+
printk(KERN_CONT "%s %u", i > 0 ? "," : "", hdp->hd_irq[i]);
873873
printk(KERN_CONT "\n");
874874

875875
temp = hpetp->hp_tick_freq;

0 commit comments

Comments
 (0)