提交 ac9cd36c 编写于 作者: A Antonio Cardace 提交者: Boris Brezillon

mtd: nftl: use %*ph to print small buffer

Use %*ph format to print small buffer as hex string.
Suggested-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NAntonio Cardace <anto.cardace@gmail.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com>
上级 e7bfb3fd
...@@ -122,8 +122,7 @@ static int find_boot_record(struct NFTLrecord *nftl) ...@@ -122,8 +122,7 @@ static int find_boot_record(struct NFTLrecord *nftl)
if (memcmp(buf, "ANAND", 6)) { if (memcmp(buf, "ANAND", 6)) {
printk(KERN_NOTICE "ANAND header found at 0x%x in mtd%d, but went away on reread!\n", printk(KERN_NOTICE "ANAND header found at 0x%x in mtd%d, but went away on reread!\n",
block * nftl->EraseSize, nftl->mbd.mtd->index); block * nftl->EraseSize, nftl->mbd.mtd->index);
printk(KERN_NOTICE "New data are: %02x %02x %02x %02x %02x %02x\n", printk(KERN_NOTICE "New data are: %6ph\n", buf);
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
continue; continue;
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册