diff options
author | Michal Simek <monstr@monstr.eu> | 2008-07-17 12:25:46 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-20 23:10:34 +0200 |
commit | 1953d128fd07f07d1c3810a28c0863ea64dae1b6 (patch) | |
tree | 5df2528b42f073dd5bbb34b14f288a1811073729 | |
parent | de2a07e534f18b1ca5f9869a4ef0604ca829cff0 (diff) | |
download | u-boot-1953d128fd07f07d1c3810a28c0863ea64dae1b6.tar.gz u-boot-1953d128fd07f07d1c3810a28c0863ea64dae1b6.tar.xz u-boot-1953d128fd07f07d1c3810a28c0863ea64dae1b6.zip |
microblaze: Fix printf() format issues
Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r-- | common/cmd_bdinfo.c | 2 | ||||
-rw-r--r-- | common/cmd_mfsl.c | 6 | ||||
-rw-r--r-- | cpu/microblaze/interrupts.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index caa467d026..24ff9b9956 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -205,7 +205,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) puts ("\nip_addr = "); print_IPaddr (bd->bi_ip_addr); #endif - printf ("\nbaudrate = %d bps\n", (ulong)bd->bi_baudrate); + printf ("\nbaudrate = %ld bps\n", (ulong)bd->bi_baudrate); return 0; } diff --git a/common/cmd_mfsl.c b/common/cmd_mfsl.c index 5982b76e6e..c2442eed13 100644 --- a/common/cmd_mfsl.c +++ b/common/cmd_mfsl.c @@ -183,7 +183,7 @@ int do_frd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) return 1; } - printf ("%01x: 0x%08lx - %s %s read\n", fslnum, num, + printf ("%01x: 0x%08x - %s %s read\n", fslnum, num, blocking < 2 ? "non blocking" : "blocking", ((blocking == 1) || (blocking == 3)) ? "control" : "data" ); return 0; @@ -341,7 +341,7 @@ int do_fwr (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) return 1; } - printf ("%01x: 0x%08lx - %s %s write\n", fslnum, num, + printf ("%01x: 0x%08x - %s %s write\n", fslnum, num, blocking < 2 ? "non blocking" : "blocking", ((blocking == 1) || (blocking == 3)) ? "control" : "data" ); return 0; @@ -382,7 +382,7 @@ int do_rspr (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) puts ("Unsupported register\n"); return 1; } - printf (": 0x%08lx\n", val); + printf (": 0x%08x\n", val); return 0; } diff --git a/cpu/microblaze/interrupts.c b/cpu/microblaze/interrupts.c index 3f04b29983..26e88cb519 100644 --- a/cpu/microblaze/interrupts.c +++ b/cpu/microblaze/interrupts.c @@ -203,7 +203,7 @@ int do_irqinfo (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) for (i = 0; i < CFG_INTC_0_NUM; i++) { if (act->handler != (interrupt_handler_t*) def_hdlr) { - printf ("%02d %08lx %08lx %d\n", i, + printf ("%02d %08x %08x %d\n", i, (int)act->handler, (int)act->arg, act->count); } act++; |