From da9a79ba5873b0f1d4dc7711ea6a96be6b69341e Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Fri, 21 May 2010 16:18:10 +0200 Subject: [PATCH] x86 platform drivers: hp-wmi Catch and log unkown event and key codes correctly Signed-off-by: Thomas Renninger Signed-off-by: Matthew Garrett CC: linux-acpi@vger.kernel.org CC: platform-driver-x86@vger.kernel.org --- drivers/platform/x86/hp-wmi.c | 8 +++++--- 1 file 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) 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; } } -- 2.20.1