From patchwork Thu Apr 8 22:22:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 49769 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AEB78B7D2A for ; Fri, 9 Apr 2010 08:23:45 +1000 (EST) Received: from localhost ([127.0.0.1]:54290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O008N-0004XR-1K for incoming@patchwork.ozlabs.org; Thu, 08 Apr 2010 18:23:35 -0400 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 Received: (qmail 8856 invoked by uid 503); 8 Apr 2010 22:14:30 -0000 Received: from b7.ovh.net (HELO mail419.ha.ovh.net) (213.186.33.57) by 30.mail-out.ovh.net with SMTP; 8 Apr 2010 22:14:30 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 8 Apr 2010 22:15:12 -0000 Received: from abo-72-52-68.mts.modulonet.fr (HELO localhost.localdomain) (thomas@monjalon.net@85.68.52.72) by ns0.ovh.net with SMTP; 8 Apr 2010 22:15:11 -0000 From: Thomas Monjalon To: qemu-devel@nongnu.org Date: Fri, 9 Apr 2010 00:22:40 +0200 Message-Id: <1270765360-5008-1-git-send-email-thomas_ml@monjalon.net> X-Mailer: git-send-email 1.7.0.4 X-Ovh-Tracer-Id: 6156139216182228801 X-Ovh-Remote: 85.68.52.72 (abo-72-52-68.mts.modulonet.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] microblaze: fix build on Ubuntu Hardy X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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; } }