MIPS: Fix the wrong format specifier
authorliujing <liujing@cmss.chinamobile.com>
Wed, 4 Dec 2024 09:23:38 +0000 (17:23 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 11 Jan 2025 11:33:01 +0000 (12:33 +0100)
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>
arch/mips/kernel/cevt-bcm1480.c

index d39a2963b4511686ab1868e3f58ebd29e50419f0..2a14dc4ee57efd5ee045e703dfcd3a5e05014e48 100644 (file)
@@ -103,7 +103,7 @@ void sb1480_clockevent_init(void)
 
        BUG_ON(cpu > 3);        /* Only have 4 general purpose timers */
 
-       sprintf(name, "bcm1480-counter-%d", cpu);
+       sprintf(name, "bcm1480-counter-%u", cpu);
        cd->name                = name;
        cd->features            = CLOCK_EVT_FEAT_PERIODIC |
                                  CLOCK_EVT_FEAT_ONESHOT;