diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-07-10 10:34:43 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-10 10:54:53 -0400 |
commit | 761a86b10725d314cad73a75020a2544c38d5a83 (patch) | |
tree | 67a3e34beda5b9d07f9d9b4109183e17b9862067 | |
parent | ed893559c9799df3b32051871c22017151394d82 (diff) |
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-tle62x0.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
52 | buff[1] = gpio_state; | 52 | buff[1] = gpio_state; |
53 | } | 53 | } |
54 | 54 | ||
55 | dev_dbg(&st->us->dev, "buff %02x,%02x,%02x\n", | 55 | dev_dbg(&st->us->dev, "buff %3ph\n", buff); |
56 | buff[0], buff[1], buff[2]); | ||
57 | 56 | ||
58 | return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); | 57 | return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); |
59 | } | 58 | } |