Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O000O-0000id-OJ for qemu-devel@nongnu.org; Thu, 08 Apr 2010 18:15:20 -0400 Received: from [140.186.70.92] (port=58356 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O000M-0000hw-Fg for qemu-devel@nongnu.org; Thu, 08 Apr 2010 18:15:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O000J-0000Pv-8n for qemu-devel@nongnu.org; Thu, 08 Apr 2010 18:15:16 -0400 Received: from 30.mail-out.ovh.net ([213.186.62.213]:40150) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O000I-0000Pd-VX for qemu-devel@nongnu.org; Thu, 08 Apr 2010 18:15:15 -0400 From: Thomas Monjalon Date: Fri, 9 Apr 2010 00:22:40 +0200 Message-Id: <1270765360-5008-1-git-send-email-thomas_ml@monjalon.net> Subject: [Qemu-devel] [PATCH] microblaze: fix build on Ubuntu Hardy List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Thomas Monjalon Using GCC-4.2.4-1ubuntu4, there were 3 warnings. Signed-off-by: Thomas Monjalon --- 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