summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-picolcd_core.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2014-08-28 01:27:10 +0400
committerJiri Kosina <jkosina@suse.cz>2014-08-28 01:27:10 +0400
commit604b607748a576c3861f549772b72fb62c05a3fd (patch)
tree9bb0f36756bb90b6726761783d7f6ff153427be8 /drivers/hid/hid-picolcd_core.c
parentff0c57ac70434bc936cb0110eaf033a0a1a62e52 (diff)
downloadlinux-604b607748a576c3861f549772b72fb62c05a3fd.tar.xz
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: Bruno Prémont <bonbons@linux-vserver.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-picolcd_core.c')
-rw-r--r--drivers/hid/hid-picolcd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-picolcd_core.c b/drivers/hid/hid-picolcd_core.c
index 020df3c2e8b4..c1b29a9eb41a 100644
--- a/drivers/hid/hid-picolcd_core.c
+++ b/drivers/hid/hid-picolcd_core.c
@@ -351,8 +351,8 @@ static int picolcd_raw_event(struct hid_device *hdev,
return 1;
if (size > 64) {
- hid_warn(hdev, "invalid size value (%d) for picolcd raw event\n",
- size);
+ hid_warn(hdev, "invalid size value (%d) for picolcd raw event (%d)\n",
+ size, report->id);
return 0;
}