diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-11 01:16:00 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-11 01:16:00 +0200 |
commit | 9b55a2536919f4de1bb1044e6eb8262c2f53bc96 (patch) | |
tree | 56a8a946f45094770f1f4b3e10b2344191c6c40c /board/mpc8540eval/flash.c | |
parent | 4109df6f75fc00ab7da56d286ba50149a0d16a69 (diff) | |
download | u-boot-imx-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.zip u-boot-imx-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.tar.gz u-boot-imx-9b55a2536919f4de1bb1044e6eb8262c2f53bc96.tar.bz2 |
Fix some more print() format errors.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/mpc8540eval/flash.c')
-rw-r--r-- | board/mpc8540eval/flash.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/board/mpc8540eval/flash.c b/board/mpc8540eval/flash.c index 7300a04..79eb04c 100644 --- a/board/mpc8540eval/flash.c +++ b/board/mpc8540eval/flash.c @@ -591,7 +591,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt) cnt -= FLASH_BLOCK_SIZE; if (((count-cnt)>>10)>temp) { temp=(count-cnt)>>10; - printf("\r%d KB",temp); + printf("\r%lu KB",temp); } } printf("\n"); @@ -699,7 +699,8 @@ static int write_block(flash_info_t *info, uchar * src, ulong dest, ulong cnt) } } if (csr & 0x4040) { - printf ("CSR indicates write error (%04x) at %08lx\n", csr, (ulong)addr); + printf ("CSR indicates write error (%04lx) at %08lx\n", + csr, (ulong)addr); flag = 1; } /* Clear Status Registers Command */ @@ -756,7 +757,8 @@ static int write_short (flash_info_t *info, ulong dest, ushort data) } } if (csr & 0x4040) { - printf ("CSR indicates write error (%04x) at %08lx\n", csr, (ulong)addr); + printf ("CSR indicates write error (%04lx) at %08lx\n", + csr, (ulong)addr); flag = 1; } /* Clear Status Registers Command */ |