x86 platform drivers: hp-wmi Catch and log unkown event and key codes correctly
authorThomas Renninger <trenn@suse.de>
Fri, 21 May 2010 14:18:10 +0000 (16:18 +0200)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:41 +0000 (09:48 -0400)
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
drivers/platform/x86/hp-wmi.c

index f1c186245f983446cb9eef03c419a0a5196b69eb..7b086ddf7b2d84db0591f7e98143d5fecf567204 100644 (file)
@@ -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;
        }
 }