提交 70aa3456 编写于 作者: A Andy Shevchenko 提交者: Mauro Carvalho Chehab

[media] gspca: use %*ph to print small buffers

Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 9697b54f
...@@ -228,11 +228,8 @@ static int sd_config(struct gspca_dev *gspca_dev, ...@@ -228,11 +228,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
} }
/* Note we leave out the usb id and the manufacturing date */ /* Note we leave out the usb id and the manufacturing date */
PDEBUG(D_PROBE, PDEBUG(D_PROBE,
"SQ9050 ID string: %02x - %02x %02x %02x %02x %02x %02x", "SQ9050 ID string: %02x - %*ph",
gspca_dev->usb_buf[3], gspca_dev->usb_buf[3], 6, gspca_dev->usb_buf + 14);
gspca_dev->usb_buf[14], gspca_dev->usb_buf[15],
gspca_dev->usb_buf[16], gspca_dev->usb_buf[17],
gspca_dev->usb_buf[18], gspca_dev->usb_buf[19]);
cam->cam_mode = sq905c_mode; cam->cam_mode = sq905c_mode;
cam->nmodes = 2; cam->nmodes = 2;
......
...@@ -863,15 +863,7 @@ static int sd_init(struct gspca_dev *gspca_dev) ...@@ -863,15 +863,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
* 6: c8 / c9 / ca / cf = mode webcam?, sensor? webcam? * 6: c8 / c9 / ca / cf = mode webcam?, sensor? webcam?
* 7: 00 * 7: 00
*/ */
PDEBUG(D_PROBE, "info: %02x %02x %02x %02x %02x %02x %02x %02x", PDEBUG(D_PROBE, "info: %*ph", 8, gspca_dev->usb_buf);
gspca_dev->usb_buf[0],
gspca_dev->usb_buf[1],
gspca_dev->usb_buf[2],
gspca_dev->usb_buf[3],
gspca_dev->usb_buf[4],
gspca_dev->usb_buf[5],
gspca_dev->usb_buf[6],
gspca_dev->usb_buf[7]);
bridge_init(sd); bridge_init(sd);
......
...@@ -2934,11 +2934,8 @@ static void reg_r(struct gspca_dev *gspca_dev, ...@@ -2934,11 +2934,8 @@ static void reg_r(struct gspca_dev *gspca_dev,
PDEBUG(D_USBI, "GET %02x 0001 %04x %02x", req, index, PDEBUG(D_USBI, "GET %02x 0001 %04x %02x", req, index,
gspca_dev->usb_buf[0]); gspca_dev->usb_buf[0]);
else else
PDEBUG(D_USBI, "GET %02x 0001 %04x %02x %02x %02x", PDEBUG(D_USBI, "GET %02x 0001 %04x %*ph",
req, index, req, index, 3, gspca_dev->usb_buf);
gspca_dev->usb_buf[0],
gspca_dev->usb_buf[1],
gspca_dev->usb_buf[2]);
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册