diff options
author | Thomas Renninger <trenn@suse.de> | 2010-05-21 10:18:10 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:48:41 -0400 |
commit | da9a79ba5873b0f1d4dc7711ea6a96be6b69341e (patch) | |
tree | 0fd5eb5d31094ecd423a4e52edb559fbd9575165 | |
parent | 751ae808f6b29803228609f51aa1ae057f5c576e (diff) |
x86 platform drivers: hp-wmi Catch and log unkown event and key codes correctly
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
CC: linux-acpi@vger.kernel.org
CC: platform-driver-x86@vger.kernel.org
-rw-r--r-- | drivers/platform/x86/hp-wmi.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index f1c186245f98..7b086ddf7b2d 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c | |||
@@ -386,7 +386,9 @@ static void hp_wmi_notify(u32 value, void *context) | |||
386 | input_sync(hp_wmi_input_dev); | 386 | input_sync(hp_wmi_input_dev); |
387 | break; | 387 | break; |
388 | } | 388 | } |
389 | } | 389 | } else |
390 | printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n", | ||
391 | key_code); | ||
390 | break; | 392 | break; |
391 | case HPWMI_WIRELESS: | 393 | case HPWMI_WIRELESS: |
392 | if (wifi_rfkill) | 394 | if (wifi_rfkill) |
@@ -403,8 +405,8 @@ static void hp_wmi_notify(u32 value, void *context) | |||
403 | hp_wmi_get_hw_state(HPWMI_WWAN)); | 405 | hp_wmi_get_hw_state(HPWMI_WWAN)); |
404 | break; | 406 | break; |
405 | default: | 407 | default: |
406 | printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n", | 408 | printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n", |
407 | eventcode); | 409 | eventcode); |
408 | break; | 410 | break; |
409 | } | 411 | } |
410 | } | 412 | } |