HID: holtekff: use %*ph to dump small buffers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Sep 2012 12:00:43 +0000 (15:00 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 10 Sep 2012 21:00:32 +0000 (23:00 +0200)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-holtekff.c

index 4e75421..ff295e6 100644 (file)
@@ -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);
 }