[PATCH 04/24] nand: fix printf compiler warnings

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 7 05:43:44 EST 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 commands/nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/commands/nand.c b/commands/nand.c
index 0902f21..d3921b9 100644
--- a/commands/nand.c
+++ b/commands/nand.c
@@ -63,7 +63,7 @@ static ssize_t nand_bb_read(struct cdev *cdev, void *buf, size_t count,
 			return ret;
 
 		if (ret) {
-			printf("skipping bad block at 0x%08x\n", bb->offset);
+			printf("skipping bad block at 0x%08lx\n", bb->offset);
 			bb->offset += bb->info.erasesize;
 			continue;
 		}
-- 
1.7.2.3




More information about the barebox mailing list