Skip to content

Commit

Permalink
HID: i2c-hid: print the correct data in dbg msg
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean-Baptiste Maneyrol authored and Jiri Kosina committed Nov 18, 2014
1 parent 6b07974 commit 08bb7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/i2c-hid/i2c-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ static void i2c_hid_init_report(struct hid_report *report, u8 *buffer,
report->id, buffer, size))
return;

i2c_hid_dbg(ihid, "report (len=%d): %*ph\n", size, size, ihid->inbuf);
i2c_hid_dbg(ihid, "report (len=%d): %*ph\n", size, size, buffer);

ret_size = buffer[0] | (buffer[1] << 8);

Expand Down

0 comments on commit 08bb7be

Please sign in to comment.