Skip to content

Commit 3398b1b

Browse files
liujingtsbogend
authored andcommitted
MIPS: Fix the wrong format specifier
Make a minor change to eliminate a static checker warning. The type of cpu is unsigned int, so the correct format specifier should be %u instead of %d. Signed-off-by: liujing <liujing@cmss.chinamobile.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 0dbec35 commit 3398b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/kernel/cevt-bcm1480.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void sb1480_clockevent_init(void)
103103

104104
BUG_ON(cpu > 3); /* Only have 4 general purpose timers */
105105

106-
sprintf(name, "bcm1480-counter-%d", cpu);
106+
sprintf(name, "bcm1480-counter-%u", cpu);
107107
cd->name = name;
108108
cd->features = CLOCK_EVT_FEAT_PERIODIC |
109109
CLOCK_EVT_FEAT_ONESHOT;

0 commit comments

Comments
 (0)