diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-07-12 14:36:34 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-13 16:55:00 +0200 |
commit | 0a5676befb0c590212a53f7627fa5d0d8a84bf34 (patch) | |
tree | ea6812919abaf744be8c7b5b904dc78244cbaa4d /board/integratorcp/flash.c | |
parent | 18c8a28aad49803780bd8d52432ded528e37e701 (diff) | |
download | u-boot-imx-0a5676befb0c590212a53f7627fa5d0d8a84bf34.zip u-boot-imx-0a5676befb0c590212a53f7627fa5d0d8a84bf34.tar.gz u-boot-imx-0a5676befb0c590212a53f7627fa5d0d8a84bf34.tar.bz2 |
Fix some more printf() format issues.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board/integratorcp/flash.c')
-rw-r--r-- | board/integratorcp/flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/integratorcp/flash.c b/board/integratorcp/flash.c index b653c05..59961cd 100644 --- a/board/integratorcp/flash.c +++ b/board/integratorcp/flash.c @@ -393,7 +393,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last) *addr = (FPW) 0x00D000D0; } else { #ifdef DEBUG - printf ("Timeout,0x%08x\n", status); + printf ("Timeout,0x%08lx\n", status); #else printf("Timeout\n"); #endif @@ -515,7 +515,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data) /* Check if Flash is (sufficiently) erased */ if ((*addr & data) != data) { - printf ("not erased at %08lx (%x)\n", (ulong) addr, *addr); + printf ("not erased at %08lx (%lx)\n", (ulong) addr, *addr); return (2); } @@ -542,7 +542,7 @@ static int write_data (flash_info_t * info, ulong dest, FPW data) #ifdef DEBUG *addr = (FPW) 0x00700070; status = *addr; - printf("## status=0x%08x, addr=0x%08x\n", status, addr); + printf("## status=0x%08lx, addr=0x%p\n", status, addr); #endif *addr = (FPW) 0x00500050; /* clear status register cmd */ *addr = (FPW) 0x00FF00FF; /* restore read mode */ |