Commit 8e3039ed authored by Vojtech Pavlik's avatar Vojtech Pavlik

input: Only generate rawmode warnings if the event we cannot handle

	is a real key and not just a button or something.
parent d3001bb1
......@@ -1027,7 +1027,8 @@ void kbd_keycode(unsigned int keycode, int down)
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment