diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2012-09-07 10:31:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-07 12:23:26 +0200 |
commit | d17aed1a07cd4d330d94d70725067caba7d64128 (patch) | |
tree | 0121a961d65bd3227ac900c389c24d94e6b946c0 | |
parent | 298d15571da8d1cb71e7fd87cc53cad3b2bf1d12 (diff) | |
download | barebox-d17aed1a07cd4d330d94d70725067caba7d64128.tar.gz barebox-d17aed1a07cd4d330d94d70725067caba7d64128.tar.xz |
mtd: use correct format specifier
For the size_t type the format specifier %zu or %zx must be used.
See Documentation/printk-formats.txt in the kernel for details.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mtd/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c index a6132e8ac5..68ab70d4c6 100644 --- a/drivers/mtd/core.c +++ b/drivers/mtd/core.c @@ -79,7 +79,7 @@ static ssize_t mtd_write(struct cdev* cdev, const void *buf, size_t _count, return -EINVAL; } - dev_dbg(cdev->dev, "write: 0x%08lx 0x%08lx\n", offset, count); + dev_dbg(cdev->dev, "write: offset: 0x%08lx count: 0x%zx\n", offset, count); while (count) { now = count > mtd->writesize ? mtd->writesize : count; @@ -100,7 +100,7 @@ static ssize_t mtd_write(struct cdev* cdev, const void *buf, size_t _count, ret = mtd->write(mtd, offset, now, &retlen, buf); dev_dbg(cdev->dev, - "offset: 0x%08lx now: 0x%08lx retlen: 0x%08lx\n", + "offset: 0x%08lx now: 0x%zx retlen: 0x%zx\n", offset, now, retlen); } if (ret) |