qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] microblaze: fix build on Ubuntu Hardy


From: Thomas Monjalon
Subject: [Qemu-devel] [PATCH] microblaze: fix build on Ubuntu Hardy
Date: Fri, 9 Apr 2010 00:22:40 +0200

From: Thomas Monjalon <address@hidden>

Using GCC-4.2.4-1ubuntu4, there were 3 warnings.

Signed-off-by: Thomas Monjalon <address@hidden>
---
 microblaze-dis.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/microblaze-dis.c b/microblaze-dis.c
index b26572f..698ea7b 100644
--- a/microblaze-dis.c
+++ b/microblaze-dis.c
@@ -789,7 +789,6 @@ read_insn_microblaze (bfd_vma memaddr,
 int 
 print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info)
 {
-  fprintf_ftype       fprintf = info->fprintf_func;
   void *              stream = info->stream;
   unsigned long       inst, prev_inst;
   struct op_code_struct * op, *pop;
@@ -826,7 +825,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 +958,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.7.0.4





reply via email to

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