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

From: Roland Dreier
Date: Tue Aug 19 2008 - 15:28:22 EST


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@xxxxxxxxx>
---
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));
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/