Skip to contentSkip to conversation

Input: evdev - Fix printk() format warning

PATCH In review Roland Dreier 2 participants 2 messages Aug 19, 2008 Input drivers

lore
Share & tools
lore
#0 lore raw

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'

---
 drivers/input/evdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/input/evdev.c +1 -1
index a92d815..70854db 100644
@@ -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));
maintainer
#1 lore raw

Hi 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