diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-09-03 09:31:37 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-09-26 07:22:25 -0300 |
commit | ee35fa2267df3ebe36819dd5381e0067d574131f (patch) | |
tree | 59493ac68f96c865642ca8f60d118affb9fd5022 /drivers/media/usb/gspca/sonixb.c | |
parent | 76e059874d3c362797990b4dcd58979b3f26f86f (diff) | |
download | linux-ee35fa2267df3ebe36819dd5381e0067d574131f.tar.gz linux-ee35fa2267df3ebe36819dd5381e0067d574131f.tar.bz2 linux-ee35fa2267df3ebe36819dd5381e0067d574131f.zip |
[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>
Diffstat (limited to 'drivers/media/usb/gspca/sonixb.c')
-rw-r--r-- | drivers/media/usb/gspca/sonixb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/usb/gspca/sonixb.c b/drivers/media/usb/gspca/sonixb.c index 921802cbdfe0..7277dbd2afcd 100644 --- a/drivers/media/usb/gspca/sonixb.c +++ b/drivers/media/usb/gspca/sonixb.c @@ -513,10 +513,7 @@ static void i2c_w(struct gspca_dev *gspca_dev, const u8 *buf) if (gspca_dev->usb_buf[0] & 0x04) { if (gspca_dev->usb_buf[0] & 0x08) { dev_err(gspca_dev->v4l2_dev.dev, - "i2c error writing %02x %02x %02x %02x" - " %02x %02x %02x %02x\n", - buf[0], buf[1], buf[2], buf[3], - buf[4], buf[5], buf[6], buf[7]); + "i2c error writing %8ph\n", buf); gspca_dev->usb_err = -EIO; } return; |