qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembl


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler
Date: Fri, 9 Apr 2010 22:49:49 +0200

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

Signed-off-by: Stefan Weil <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]