hid: holtekff: use %*ph to dump small buffers
PATCH 1/1 hid: holtekff: use %*ph to dump small buffers
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/hid/hid-holtekff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/hid/hid-holtekff.c +1 -2
@@ -100,8 +100,7 @@ static void holtekff_send(struct holtekff_device *holtekff, holtekff->field->value[i] = data[i]; } -dbg_hid ("sending %02x %02x %02x %02x %02x %02x %02x\n" , data[0 ], - data[1 ], data[2 ], data[3 ], data[4 ], data[5 ], data[6 ]); +dbg_hid ("sending %*ph\n" ,7 , data);usbhid_submit_report (hid, holtekff->field->report,USB_DIR_OUT ); }
Signature · 1 line
1.7.10.4
Jiri Kosina
AppliedQuoted 10 lines · Andy Shevchenko
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/hid/hid-holtekff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/hid/hid-holtekff.c +0
-0
drivers/hid/hid-holtekff.c static void holtekff_send(struct holtekff_device *holtekff, · line 106
Quoted 9 lines
drivers/hid/hid-holtekff.c +1
-2@@ -100,8 +100,7 @@ static void holtekff_send(struct holtekff_device *holtekff, holtekff->field->value[i] = data[i]; } -dbg_hid ("sending %02x %02x %02x %02x %02x %02x %02x\n" , data[0 ], - data[1 ], data[2 ], data[3 ], data[4 ], data[5 ], data[6 ]); +dbg_hid ("sending %*ph\n" ,7 , data);usbhid_submit_report (hid, holtekff->field->report,USB_DIR_OUT ); }
Applied.
Signature · 2 lines
Jiri Kosina SUSE Labs