Skip to content

Commit

Permalink
spi: tle62x0: dump small buffers using %*ph
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Mark Brown committed Jul 10, 2013
1 parent ed89355 commit 761a86b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/spi/spi-tle62x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 761a86b

Please sign in to comment.