提交 da9a79ba 编写于 作者: T Thomas Renninger 提交者: Matthew Garrett

x86 platform drivers: hp-wmi Catch and log unkown event and key codes correctly

Signed-off-by: NThomas Renninger <trenn@suse.de>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
CC: linux-acpi@vger.kernel.org
CC: platform-driver-x86@vger.kernel.org
上级 751ae808
......@@ -386,7 +386,9 @@ static void hp_wmi_notify(u32 value, void *context)
input_sync(hp_wmi_input_dev);
break;
}
}
} else
printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n",
key_code);
break;
case HPWMI_WIRELESS:
if (wifi_rfkill)
......@@ -403,8 +405,8 @@ static void hp_wmi_notify(u32 value, void *context)
hp_wmi_get_hw_state(HPWMI_WWAN));
break;
default:
printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n",
eventcode);
printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n",
eventcode);
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册