[PATCH 2/2] mtd: doc3: Fix wrong format specifier

Sascha Hauer s.hauer at pengutronix.de
Tue Mar 29 22:54:03 PDT 2016


Fixes: 1e009bf mtd: Make erase_info structs 64bit where necessary

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mtd/devices/docg3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 3ff7ddf..6a9bc74 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -849,7 +849,7 @@ static int doc_erase(struct mtd_info *mtd, struct erase_info *info)
 	uint64_t len;
 	int block0, block1, page, ret, ofs = 0;
 
-	doc_dbg("doc_erase(from=%d, len=%d\n", info->addr, info->len);
+	doc_dbg("doc_erase(from=%lld, len=%lld\n", info->addr, info->len);
 	doc_set_device_id(docg3, docg3->device_id);
 
 	info->state = MTD_ERASE_PENDING;
-- 
2.7.0




More information about the barebox mailing list