[PATCH 13/24] ipe337: fix printf compiler warnings
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 7 05:43:53 EST 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/blackfin/boards/ipe337/cmd_alternate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/blackfin/boards/ipe337/cmd_alternate.c b/arch/blackfin/boards/ipe337/cmd_alternate.c
index 2883c77..116f910 100644
--- a/arch/blackfin/boards/ipe337/cmd_alternate.c
+++ b/arch/blackfin/boards/ipe337/cmd_alternate.c
@@ -21,7 +21,7 @@ static int do_alternate(struct command *cmdtp, int argc, char *argv[])
ptr = buf;
if ((*ptr) != MAGIC) {
- printf("Wrong magic! Expected 0x%08x, got 0x%08x.\n", MAGIC, *ptr);
+ printf("Wrong magic! Expected 0x%08x, got 0x%08lx.\n", MAGIC, *ptr);
return 1;
}
@@ -38,7 +38,7 @@ static int do_alternate(struct command *cmdtp, int argc, char *argv[])
} while (val >>= 1);
}
- printf("Bitcount : %d\n", bitcount);
+ printf("Bitcount : %ld\n", bitcount);
free(buf);
return (bitcount & 1) ? 3 : 2;
--
1.7.2.3
More information about the barebox
mailing list