summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices
diff options
context:
space:
mode:
authorAntonio Cardace2018-02-12 19:41:30 +0100
committerBoris Brezillon2018-03-15 17:20:37 +0100
commitf0a37a8db81ea9c7034e0fff4a430b221019fc50 (patch)
treedfa21701b773afd4b2d18ec07b17dd5ad74ed6c4 /drivers/mtd/devices
parentmtd: block2mtd: remove redundant initialization of 'bdev' (diff)
downloadkernel-qcow2-linux-f0a37a8db81ea9c7034e0fff4a430b221019fc50.tar.gz
kernel-qcow2-linux-f0a37a8db81ea9c7034e0fff4a430b221019fc50.tar.xz
kernel-qcow2-linux-f0a37a8db81ea9c7034e0fff4a430b221019fc50.zip
mtd: st_spi_fsm: use %*ph to print small buffer
Use %*ph format to print small buffer as hex string. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Antonio Cardace <anto.cardace@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r--drivers/mtd/devices/st_spi_fsm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c
index 7bc29d725200..a33f5fd6818c 100644
--- a/drivers/mtd/devices/st_spi_fsm.c
+++ b/drivers/mtd/devices/st_spi_fsm.c
@@ -1868,8 +1868,7 @@ static struct flash_info *stfsm_jedec_probe(struct stfsm *fsm)
*/
ext_jedec = id[3] << 8 | id[4];
- dev_dbg(fsm->dev, "JEDEC = 0x%08x [%02x %02x %02x %02x %02x]\n",
- jedec, id[0], id[1], id[2], id[3], id[4]);
+ dev_dbg(fsm->dev, "JEDEC = 0x%08x [%5ph]\n", jedec, id);
for (info = flash_types; info->name; info++) {
if (info->jedec_id == jedec) {