nohz: Type cast printk argument
authorThomas Gleixner <tglx@linutronix.de>
Fri, 13 Nov 2009 13:32:19 +0000 (14:32 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Nov 2009 19:46:24 +0000 (20:46 +0100)
On some archs local_softirq_pending() has a data type of unsigned long
on others its unsigned int. Type cast it to (unsigned int) in the
printk to avoid the compiler warning.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>

kernel/time/tick-sched.c

index 3840f6dff7eb09dfdbd65c6b8609f0fa07c08548..c65ba0faa98f2169206e6a1dcbfa6ca874ee2bcf 100644 (file)
@@ -250,7 +250,7 @@ void tick_nohz_stop_sched_tick(int inidle)
 
                if (ratelimit < 10) {
                        printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
-                              local_softirq_pending());
+                              (unsigned int) local_softirq_pending());
                        ratelimit++;
                }
                goto end;