summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/vbtn.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-03-27 20:57:12 +0100
committerHans de Goede <hdegoede@redhat.com>2024-04-08 15:24:32 +0200
commit7ad58be75fcd4ef7d9b637cc3b6c48b26082eef3 (patch)
tree698928dfc2c3d545fe653b54c5e9dd7cb52735d2 /drivers/platform/x86/intel/vbtn.c
parent10eba55febd4784cf54bbb411636f3929723bfc0 (diff)
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
Diffstat (limited to 'drivers/platform/x86/intel/vbtn.c')
-rw-r--r--drivers/platform/x86/intel/vbtn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/vbtn.c b/drivers/platform/x86/intel/vbtn.c
index 084c355c86f5..de4decbb13ba 100644
--- a/drivers/platform/x86/intel/vbtn.c
+++ b/drivers/platform/x86/intel/vbtn.c
@@ -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;