mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] commands: nandtest: Fix wrong format specifier
@ 2016-03-30  5:54 Sascha Hauer
  2016-03-30  5:54 ` [PATCH 2/2] mtd: doc3: " Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2016-03-30  5:54 UTC (permalink / raw)
  To: Barebox List

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

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 commands/nandtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/nandtest.c b/commands/nandtest.c
index ee7725d..6d0b770 100644
--- a/commands/nandtest.c
+++ b/commands/nandtest.c
@@ -87,7 +87,7 @@ static int erase_and_write(loff_t ofs, unsigned char *data,
 	ret = erase(fd, er.length, er.start);
 	if (ret < 0) {
 		perror("\nerase");
-		printf("Could't not erase flash at 0x%08x length 0x%08x.\n",
+		printf("Could't not erase flash at 0x%08llx length 0x%08llx.\n",
 			   er.start, er.length);
 		return ret;
 	}
-- 
2.7.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 2/2] mtd: doc3: Fix wrong format specifier
  2016-03-30  5:54 [PATCH 1/2] commands: nandtest: Fix wrong format specifier Sascha Hauer
@ 2016-03-30  5:54 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2016-03-30  5:54 UTC (permalink / raw)
  To: Barebox List

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

Signed-off-by: Sascha Hauer <s.hauer@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-30  5:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30  5:54 [PATCH 1/2] commands: nandtest: Fix wrong format specifier Sascha Hauer
2016-03-30  5:54 ` [PATCH 2/2] mtd: doc3: " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox