[PATCH] Input: evdev - Fix printk() format warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roland Dreier
Date: Tuesday, August 19, 2008 - 12:27 pm

drivers/input/evdev.c: In function 'handle_eviocgbit':
    drivers/input/evdev.c:684: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'

Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
 drivers/input/evdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index a92d815..70854db 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -678,7 +678,7 @@ static int handle_eviocgbit(struct input_dev *dev, unsigned int cmd, void __user
 		if (printk_timed_ratelimit(&keymax_warn_time, 10 * 1000))
 			printk(KERN_WARNING
 				"evdev.c(EVIOCGBIT): Suspicious buffer size %d, "
-				"limiting output to %d bytes. See "
+				"limiting output to %ld bytes. See "
 				"http://userweb.kernel.org/~dtor/eviocgbit-bug.html\n",
 				OLD_KEY_MAX,
 				BITS_TO_LONGS(OLD_KEY_MAX) * sizeof(long));
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Input: evdev - Fix printk() format warning, Roland Dreier, (Tue Aug 19, 12:27 pm)
Re: [PATCH] Input: evdev - Fix printk() format warning, Dmitry Torokhov, (Tue Aug 19, 12:42 pm)