mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 06:49:45 -04:00
platform/x86: intel-vbtn: Log event code on unexpected button events
When logging the warning about receiving a button event on a device without buttons log the event code which triggered the warning. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Link: https://lore.kernel.org/r/20240327195712.43851-1-hdegoede@redhat.com
This commit is contained in:
@@ -158,7 +158,8 @@ static void notify_handler(acpi_handle handle, u32 event, void *context)
|
||||
|
||||
if ((ke = sparse_keymap_entry_from_scancode(priv->buttons_dev, event))) {
|
||||
if (!priv->has_buttons) {
|
||||
dev_warn(&device->dev, "Warning: received a button event on a device without buttons, please report this.\n");
|
||||
dev_warn(&device->dev, "Warning: received 0x%02x button event on a device without buttons, please report this.\n",
|
||||
event);
|
||||
return;
|
||||
}
|
||||
input_dev = priv->buttons_dev;
|
||||
|
||||
Reference in New Issue
Block a user