Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c32678ea authored by Antonio Cardace's avatar Antonio Cardace Committed by Mauro Carvalho Chehab
Browse files

media: gspca: dtcs033: use %*ph to print small buffer



Use %*ph format to print small buffer as hex string.

Remove newline at the end of the format string as it would be duplicated
by the one supplied as last argument.

Suggested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarAntonio Cardace <anto.cardace@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ed356f11
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -76,12 +76,10 @@ static int reg_reqs(struct gspca_dev *gspca_dev,
		} else if (preq->bRequestType & USB_DIR_IN) {

			gspca_dbg(gspca_dev, D_STREAM,
				  "USB IN (%d) returned[%d] %02X %02X %02X %s\n",
				  "USB IN (%d) returned[%d] %3ph %s",
				  i,
				  preq->wLength,
				  gspca_dev->usb_buf[0],
				  gspca_dev->usb_buf[1],
				  gspca_dev->usb_buf[2],
				  gspca_dev->usb_buf,
				  preq->wLength > 3 ? "...\n" : "\n");
		}