aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-debug.c
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@gmail.com>2008-03-22 23:50:13 +0100
committerJiri Kosina <jkosina@suse.cz>2008-04-22 11:34:57 +0200
commit377e10fbb4ef219f540d06796e9fb0d3ec35a58f (patch)
treec52cacc2e4dce8abcab934042cb972c3d3d0c21b /drivers/hid/hid-debug.c
parent02008faa031f7a87b6c9df8b503a64288c8b5493 (diff)
downloadkernel_samsung_smdk4412-377e10fbb4ef219f540d06796e9fb0d3ec35a58f.zip
kernel_samsung_smdk4412-377e10fbb4ef219f540d06796e9fb0d3ec35a58f.tar.gz
kernel_samsung_smdk4412-377e10fbb4ef219f540d06796e9fb0d3ec35a58f.tar.bz2
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>
Diffstat (limited to 'drivers/hid/hid-debug.c')
-rw-r--r--drivers/hid/hid-debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c
index 5c24fe4..f88714b 100644
--- a/drivers/hid/hid-debug.c
+++ b/drivers/hid/hid-debug.c
@@ -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 ");