From: Andy Shevchenko Date: Wed, 10 Jul 2013 14:34:43 +0000 (+0300) Subject: spi: tle62x0: dump small buffers using %*ph X-Git-Tag: MMI-PSA29.97-13-9~13787^2~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=761a86b10725d314cad73a75020a2544c38d5a83;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git spi: tle62x0: dump small buffers using %*ph We have nice specifier in kernel for that. It changes separator from ',' (comma) to space, though it's not a big deal since it's just a debug message. Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c index 6b0874d782ed..3e528c0396e7 100644 --- a/drivers/spi/spi-tle62x0.c +++ b/drivers/spi/spi-tle62x0.c @@ -52,8 +52,7 @@ static inline int tle62x0_write(struct tle62x0_state *st) buff[1] = gpio_state; } - dev_dbg(&st->us->dev, "buff %02x,%02x,%02x\n", - buff[0], buff[1], buff[2]); + dev_dbg(&st->us->dev, "buff %3ph\n", buff); return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); }