mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
HID: only dump report traffic with debug level 2
Currently using debug=1 with hid module prints out all sent and received reports to the kernel log, while in many cases we only want to see the report descriptors and hid-input mappings that are printed when a device is probed. Add new level debug=2, and only dump the report traffic with that level. Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
02008faa03
commit
377e10fbb4
2 changed files with 3 additions and 3 deletions
|
@ -498,7 +498,7 @@ void hid_dump_device(struct hid_device *device) {
|
|||
EXPORT_SYMBOL_GPL(hid_dump_device);
|
||||
|
||||
void hid_dump_input(struct hid_usage *usage, __s32 value) {
|
||||
if (!hid_debug)
|
||||
if (hid_debug < 2)
|
||||
return;
|
||||
|
||||
printk(KERN_DEBUG "hid-debug: input ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue