Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08bb7bea authored by Jean-Baptiste Maneyrol's avatar Jean-Baptiste Maneyrol Committed by Jiri Kosina
Browse files

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: default avatarJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
[Antonio Borneo: cleanup and rebase to v3.17]
Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 6b07974a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -437,7 +437,7 @@ static void i2c_hid_init_report(struct hid_report *report, u8 *buffer,
			report->id, buffer, size))
			report->id, buffer, size))
		return;
		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);
	ret_size = buffer[0] | (buffer[1] << 8);