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
This commit is contained in:
committed by
Matthew Garrett
parent
751ae808f6
commit
da9a79ba58
@@ -386,7 +386,9 @@ static void hp_wmi_notify(u32 value, void *context)
|
|||||||
input_sync(hp_wmi_input_dev);
|
input_sync(hp_wmi_input_dev);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
printk(KERN_INFO "HP WMI: Unknown key code - 0x%x\n",
|
||||||
|
key_code);
|
||||||
break;
|
break;
|
||||||
case HPWMI_WIRELESS:
|
case HPWMI_WIRELESS:
|
||||||
if (wifi_rfkill)
|
if (wifi_rfkill)
|
||||||
@@ -403,7 +405,7 @@ static void hp_wmi_notify(u32 value, void *context)
|
|||||||
hp_wmi_get_hw_state(HPWMI_WWAN));
|
hp_wmi_get_hw_state(HPWMI_WWAN));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n",
|
printk(KERN_INFO "HP WMI: Unknown eventcode - %d\n",
|
||||||
eventcode);
|
eventcode);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user