lkml.org 
[lkml]   [2009]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] kernel/time/tick-sched.c: fix warning of printk's argument format
Date
This patch will fix the following warning:

kernel/time/tick-sched.c: In function 'tick_nohz_stop_sched_tick':
kernel/time/tick-sched.c:261: warning: format '%02x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
kernel/time/tick-sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index e0f59a2..26370b0 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -257,7 +257,7 @@ void tick_nohz_stop_sched_tick(int inidle)
static int ratelimit;

if (ratelimit < 10) {
- printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
+ printk(KERN_ERR "NOHZ: local_softirq_pending %02lx\n",
local_softirq_pending());
ratelimit++;
}
--
1.6.2.1


\
 
 \ /
  Last update: 2009-10-08 16:55    [W:0.051 / U:5.732 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site