qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler
@ 2010-04-09 20:49 Stefan Weil
  2010-04-09 20:49 ` [Qemu-devel] [PATCH] arm: Fix compiler warning (fprintf format string) Stefan Weil
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Stefan Weil @ 2010-04-09 20:49 UTC (permalink / raw)
  To: QEMU Developers

inst is unsigned long, so use %04lx instead of %04x.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 microblaze-dis.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/microblaze-dis.c b/microblaze-dis.c
index b26572f..9235fd8 100644
--- a/microblaze-dis.c
+++ b/microblaze-dis.c
@@ -826,7 +826,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
   prev_insn_vma = curr_insn_vma;
 
   if (op->name == 0) {
-    fprintf (stream, ".short 0x%04x", inst);
+    fprintf (stream, ".short 0x%04lx", inst);
   }
   else
     {
@@ -959,7 +959,7 @@ print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
      break;
   default:
 	  /* if the disassembler lags the instruction set */
-	  fprintf (stream, "\tundecoded operands, inst is 0x%04x", inst);
+	  fprintf (stream, "\tundecoded operands, inst is 0x%04lx", inst);
 	  break;
 	}
     }
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-04-13 22:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09 20:49 [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler Stefan Weil
2010-04-09 20:49 ` [Qemu-devel] [PATCH] arm: Fix compiler warning (fprintf format string) Stefan Weil
2010-04-13 22:16   ` Aurelien Jarno
2010-04-09 20:49 ` [Qemu-devel] [PATCH] m68k: " Stefan Weil
2010-04-13 22:17   ` Aurelien Jarno
2010-04-09 20:49 ` [Qemu-devel] [PATCH] sh4: " Stefan Weil
2010-04-13 22:17   ` Aurelien Jarno
2010-04-09 20:49 ` [Qemu-devel] [PATCH] sparc: " Stefan Weil
2010-04-13 22:17   ` Aurelien Jarno
2010-04-10 11:44 ` [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).