platform/x86: intel-hid: reduce unnecessary messages for normal users
authorAlex Hung <alex.hung@canonical.com>
Fri, 21 Jul 2017 03:58:08 +0000 (20:58 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 18 Aug 2017 23:23:15 +0000 (16:23 -0700)
Unsupported events is only useful for developers and does not meaningful
for users. Using dev_dbg makes more sense and reduces noise in kernel
messages.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/intel-hid.c

index 8519e0f97bdda981b9460fa23191e03ec08d39c9..4f70b82198500b60a59d8f4c496097725d32befd 100644 (file)
@@ -219,7 +219,7 @@ static void notify_handler(acpi_handle handle, u32 event, void *context)
        if (event != 0xc0) {
                if (!priv->array ||
                    !sparse_keymap_report_event(priv->array, event, 1, true))
-                       dev_info(&device->dev, "unknown event 0x%x\n", event);
+                       dev_dbg(&device->dev, "unknown event 0x%x\n", event);
                return;
        }
 
@@ -230,7 +230,7 @@ static void notify_handler(acpi_handle handle, u32 event, void *context)
        }
 
        if (!sparse_keymap_report_event(priv->input_dev, ev_index, 1, true))
-               dev_info(&device->dev, "unknown event index 0x%llx\n",
+               dev_dbg(&device->dev, "unknown event index 0x%llx\n",
                         ev_index);
 }