Extend uw event catching (debug)

This commit is contained in:
Christoffer Sandberg 2020-08-17 13:02:44 +02:00
parent 4a272bb715
commit edb5c08ad3
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -255,7 +255,8 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
} }
obj = (union acpi_object *) response.pointer; obj = (union acpi_object *) response.pointer;
if (obj && obj->type == ACPI_TYPE_INTEGER) { if (obj) {
if (obj->type == ACPI_TYPE_INTEGER) {
code = obj->integer.value; code = obj->integer.value;
if (!sparse_keymap_report_known_event(current_driver->input_device, code, 1, true)) { if (!sparse_keymap_report_known_event(current_driver->input_device, code, 1, true)) {
TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code); TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code);
@ -296,6 +297,9 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
uniwill_write_kbd_bl_state(); uniwill_write_kbd_bl_state();
break; break;
} }
} else {
TUXEDO_DEBUG("[Ev %d] Unknown event type - %d (%0#6x)\n", guid_nr, obj->type, obj->type);
}
} }
kfree(obj); kfree(obj);