From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IrEzL-0001Er-J2 for qemu-devel@nongnu.org; Sun, 11 Nov 2007 10:44:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IrEzK-0001Eb-8S for qemu-devel@nongnu.org; Sun, 11 Nov 2007 10:44:43 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IrEzK-0001EY-24 for qemu-devel@nongnu.org; Sun, 11 Nov 2007 10:44:42 -0500 Received: from tapir.sajinet.com.pe ([66.139.79.212]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IrEzJ-0007TI-Ld for qemu-devel@nongnu.org; Sun, 11 Nov 2007 10:44:41 -0500 Date: Sun, 11 Nov 2007 09:49:22 -0600 From: Carlo Marcelo Arenas Belon Message-ID: <20071111154922.GE25322@tapir> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] 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 64bit hosts. Carlo --- Index: hw/sh7750.c =================================================================== RCS file: /sources/qemu/qemu/hw/sh7750.c,v retrieving revision 1.9 diff -u -r1.9 sh7750.c --- hw/sh7750.c 4 Oct 2007 21:53:54 -0000 1.9 +++ hw/sh7750.c 11 Nov 2007 15:27:31 -0000 @@ -180,13 +180,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); }