Commit 604b6077 authored by Jiri Kosina's avatar Jiri Kosina

HID: picolcd: be more verbose when reporting report size error

picolcd device is not expected to send any report with size larger than
64 bytes.

If this impossible event happens (sic!), print also a report ID to allow
for easier debugging.
Suggested-by: default avatarBruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent ff0c57ac
...@@ -351,8 +351,8 @@ static int picolcd_raw_event(struct hid_device *hdev, ...@@ -351,8 +351,8 @@ static int picolcd_raw_event(struct hid_device *hdev,
return 1; return 1;
if (size > 64) { if (size > 64) {
hid_warn(hdev, "invalid size value (%d) for picolcd raw event\n", hid_warn(hdev, "invalid size value (%d) for picolcd raw event (%d)\n",
size); size, report->id);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment