Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] gspca: print small buffers via %*ph

Instead of passing each byte through stack let's use %*ph specifier to do this
job better.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Andy Shevchenko and committed by
Mauro Carvalho Chehab
ee35fa22 76e05987

+5 -12
+1 -4
drivers/media/usb/gspca/sonixb.c
··· 513 513 if (gspca_dev->usb_buf[0] & 0x04) { 514 514 if (gspca_dev->usb_buf[0] & 0x08) { 515 515 dev_err(gspca_dev->v4l2_dev.dev, 516 - "i2c error writing %02x %02x %02x %02x" 517 - " %02x %02x %02x %02x\n", 518 - buf[0], buf[1], buf[2], buf[3], 519 - buf[4], buf[5], buf[6], buf[7]); 516 + "i2c error writing %8ph\n", buf); 520 517 gspca_dev->usb_err = -EIO; 521 518 } 522 519 return;