diff options
author | Antonio Cardace <anto.cardace@gmail.com> | 2018-02-13 12:52:45 -0500 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-03-21 04:50:56 -0400 |
commit | ac9cd36c7a5dc79b3d10f0110bc096918109fdf8 (patch) | |
tree | 1b1a2277850bc717d5f759e5eb7b577d15a4ebd0 | |
parent | e7bfb3fdbde3bfeeeb64e2d73ac6babe59519c9e (diff) |
mtd: nftl: 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>
-rw-r--r-- | drivers/mtd/nftlmount.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nftlmount.c b/drivers/mtd/nftlmount.c index d8f6dba01c87..a6fbfa4e5799 100644 --- a/drivers/mtd/nftlmount.c +++ b/drivers/mtd/nftlmount.c | |||
@@ -122,8 +122,7 @@ static int find_boot_record(struct NFTLrecord *nftl) | |||
122 | if (memcmp(buf, "ANAND", 6)) { | 122 | if (memcmp(buf, "ANAND", 6)) { |
123 | printk(KERN_NOTICE "ANAND header found at 0x%x in mtd%d, but went away on reread!\n", | 123 | printk(KERN_NOTICE "ANAND header found at 0x%x in mtd%d, but went away on reread!\n", |
124 | block * nftl->EraseSize, nftl->mbd.mtd->index); | 124 | block * nftl->EraseSize, nftl->mbd.mtd->index); |
125 | printk(KERN_NOTICE "New data are: %02x %02x %02x %02x %02x %02x\n", | 125 | printk(KERN_NOTICE "New data are: %6ph\n", buf); |
126 | buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]); | ||
127 | continue; | 126 | continue; |
128 | } | 127 | } |
129 | #endif | 128 | #endif |