[patch] input: Only generate rawmode warnings for keys [3/14]

Vojtech Pavlik
2003-02-12T10:51:46Z

ChangeSet@1.1006, 2003-02-12 10:31:13+01:00, vojtech@suse.cz
input: Only generate rawmode warnings if the event we cannot handle
is a real key and not just a button or something.

keyboard.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/char/keyboard.c b/drivers/char/keyboard.c
--- a/drivers/char/keyboard.c Wed Feb 12 11:57:18 2003
+++ b/drivers/char/keyboard.c Wed Feb 12 11:57:18 2003
@@ -1027,7 +1027,8 @@

if ((raw_mode = (kbd->kbdmode == VC_RAW)))
if (emulate_raw(vc, keycode, !down << 7))
- printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", keycode);
+ if (keycode < BTN_MISC)
+ printk(KERN_WARNING "keyboard.c: can't emulate rawmode for keycode %d\n", keycode);

#ifdef CONFIG_MAGIC_SYSRQ /* Handle the SysRq Hack */
if (keycode == KEY_SYSRQ && !rep) {