From: Andy Shevchenko Date: Wed, 5 Sep 2012 12:00:43 +0000 (+0300) Subject: HID: holtekff: use %*ph to dump small buffers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e2e78e71d1a3d721beaaab591f3d6c4886ef21a4;p=linux-beck.git HID: holtekff: use %*ph to dump small buffers Signed-off-by: Andy Shevchenko Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-holtekff.c b/drivers/hid/hid-holtekff.c index 4e7542151e22..ff295e60059b 100644 --- a/drivers/hid/hid-holtekff.c +++ b/drivers/hid/hid-holtekff.c @@ -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); }