9
0
Fork 0

mtd: nand: Fix format specifier

'count' is of type size_t, so use %zx.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2015-05-13 16:53:30 +02:00
parent 16c6e37a7f
commit 1ec907c701
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ static ssize_t nand_bb_read(struct cdev *cdev, void *buf, size_t count,
size_t retlen;
int ret, bytes = 0, now;
debug("%s offset: 0x%08llx (raw: 0x%08llx) count: 0x%08x\n",
debug("%s offset: 0x%08llx (raw: 0x%08llx) count: 0x%08zx\n",
__func__, offset, bb->offset, count);
while (count) {
@ -132,7 +132,7 @@ static ssize_t nand_bb_write(struct cdev *cdev, const void *buf, size_t count,
struct nand_bb *bb = cdev->priv;
int bytes = count, now, wroffs, ret;
debug("%s offset: 0x%08llx (raw: 0x%08llx) count: 0x%08x\n",
debug("%s offset: 0x%08llx (raw: 0x%08llx) count: 0x%08zx\n",
__func__, offset, bb->offset, count);
while (count) {