aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>2014-11-16 09:45:43 -0500
committerJiri Kosina <jkosina@suse.cz>2014-11-18 16:09:52 -0500
commit08bb7beae7fe102939fe5931222fc09e10d27cda (patch)
tree89bd9bf2a78804e454878243e5446ce151192c24 /drivers/hid
parent6b07974af9698225766d42175470b1a5d7bf9f48 (diff)
HID: i2c-hid: print the correct data in dbg msg
Report is received in "buffer"; fix the following i2c_hid_dbg() to dump data from the correct pointer. Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> [Antonio Borneo: cleanup and rebase to v3.17] Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 747d54421e73..933bf1052ec0 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -437,7 +437,7 @@ static void i2c_hid_init_report(struct hid_report *report, u8 *buffer,
437 report->id, buffer, size)) 437 report->id, buffer, size))
438 return; 438 return;
439 439
440 i2c_hid_dbg(ihid, "report (len=%d): %*ph\n", size, size, ihid->inbuf); 440 i2c_hid_dbg(ihid, "report (len=%d): %*ph\n", size, size, buffer);
441 441
442 ret_size = buffer[0] | (buffer[1] << 8); 442 ret_size = buffer[0] | (buffer[1] << 8);
443 443