]> err.no Git - linux-2.6/commitdiff
HID: compilation fix when DEBUG_DATA is defined
authorJiri Kosina <jkosina@suse.cz>
Mon, 15 Jan 2007 22:53:05 +0000 (23:53 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 21 Jan 2007 21:17:55 +0000 (22:17 +0100)
hid/hid-core.c references 'len' variable when DEBUG_DATA is defined,
but the actual name of the variable is 'size'. Fix it.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c

index 38db8321b211887f4ce86e842e0823bc294a1207..b8cf50fcd64d358e2dadfbb5935bde979886506b 100644 (file)
@@ -951,7 +951,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
        }
 
 #ifdef DEBUG_DATA
-       printk(KERN_DEBUG __FILE__ ": report (size %u) (%snumbered)\n", len, report_enum->numbered ? "" : "un");
+       printk(KERN_DEBUG __FILE__ ": report (size %u) (%snumbered)\n", size, report_enum->numbered ? "" : "un");
 #endif
 
        n = 0;                          /* Normally report number is 0 */