浏览代码

HID: holtekff: use %*ph to dump small buffers

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Andy Shevchenko 13 年之前
父节点
当前提交
e2e78e71d1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/hid/hid-holtekff.c

+ 1 - 2
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);
 }