Input: evdev - Fix printk() format warning
PATCH 1/1 Input: evdev - Fix printk() format warning
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 <[email protected]>
--- drivers/input/evdev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/evdev.c +1 -1
@@ -678,7 +678,7 @@ static int handle_eviocgbit(struct input_dev *dev, unsigned int cmd, void __userif (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 ));
Dmitry Torokhov
maintainerHi Roland,
Quoted 3 lines · Roland Dreier
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'
Geert beat you to it, I have just committed his fix, but thanks anyway and sorry about the mess-up.
Signature · 1 line
Dmitry