mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
ff0c57ac70
commit
604b607748
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue