From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItrSP-0006kL-3E for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:13:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItrSN-0006jo-IW for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:13:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItrSN-0006jf-BN for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:13:31 -0500 Received: from tapir.sajinet.com.pe ([66.139.79.212]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ItrSN-0005RP-51 for qemu-devel@nongnu.org; Sun, 18 Nov 2007 16:13:31 -0500 Date: Sun, 18 Nov 2007 15:18:37 -0600 From: Carlo Marcelo Arenas Belon Message-ID: <20071118211837.GA15962@tapir> References: <20071111154922.GE25322@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071111154922.GE25322@tapir> Subject: [Qemu-devel] [PATCH] [RESEND] hw/sh7750.c: use TARGET_FMT_plx to printf target_phys_addr_t Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The following patch changes the formatting string from %08x to TARGET_FMT_plx to accommodate for compilation in 64bit hosts and that manifests with the following warning : qemu/hw/sh7750.c: In function `error_access': qemu/hw/sh7750.c:186: warning: unsigned int format, different type arg (arg 5) qemu/hw/sh7750.c: In function `ignore_access': qemu/hw/sh7750.c:192: warning: unsigned int format, different type arg (arg 5) Carlo --- Index: sh7750.c =================================================================== RCS file: /sources/qemu/qemu/hw/sh7750.c,v retrieving revision 1.11 diff -u -r1.11 sh7750.c --- sh7750.c 17 Nov 2007 17:14:48 -0000 1.11 +++ sh7750.c 18 Nov 2007 21:08:37 -0000 @@ -182,13 +182,13 @@ static void error_access(const char *kind, target_phys_addr_t addr) { - fprintf(stderr, "%s to %s (0x%08x) not supported\n", + fprintf(stderr, "%s to %s (0x" TARGET_FMT_plx ") not supported\n", kind, regname(addr), addr); } static void ignore_access(const char *kind, target_phys_addr_t addr) { - fprintf(stderr, "%s to %s (0x%08x) ignored\n", + fprintf(stderr, "%s to %s (0x" TARGET_FMT_plx ") ignored\n", kind, regname(addr), addr); }