From: Jiri Kosina Date: Mon, 15 Jan 2007 22:53:05 +0000 (+0100) Subject: HID: compilation fix when DEBUG_DATA is defined X-Git-Tag: v2.6.20-rc6~55^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e54dea69bac12dae2ff27c1c7a472d4eee70638d;p=linux-2.6-omap-h63xx.git HID: compilation fix when DEBUG_DATA is defined 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 --- diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 38db8321b21..b8cf50fcd64 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -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 */