Skip to content

Commit 08bb7be

Browse files
jmaneyrol-invnJiri Kosina
authored andcommitted
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 <[email protected]> [Antonio Borneo: cleanup and rebase to v3.17] Signed-off-by: Antonio Borneo <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 6b07974 commit 08bb7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/i2c-hid/i2c-hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static void i2c_hid_init_report(struct hid_report *report, u8 *buffer,
437437
report->id, buffer, size))
438438
return;
439439

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);
441441

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

0 commit comments

Comments
 (0)