From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0L9l-0000YG-5e for qemu-devel@nongnu.org; Fri, 09 Apr 2010 16:50:25 -0400 Received: from [140.186.70.92] (port=43264 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0L9f-0000XJ-GW for qemu-devel@nongnu.org; Fri, 09 Apr 2010 16:50:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0L9L-0002uQ-JE for qemu-devel@nongnu.org; Fri, 09 Apr 2010 16:50:00 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:51685) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0L9L-0002u8-7O for qemu-devel@nongnu.org; Fri, 09 Apr 2010 16:49:59 -0400 From: Stefan Weil Date: Fri, 9 Apr 2010 22:49:49 +0200 Message-Id: <1270846193-5667-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] microblaze: Fix two format specifiers in disassembler List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers inst is unsigned long, so use %04lx instead of %04x. Signed-off-by: Stefan Weil --- 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