From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=58730 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptsm8-0000UZ-Gs for qemu-devel@nongnu.org; Sun, 27 Feb 2011 21:23:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ptsm7-00059l-7E for qemu-devel@nongnu.org; Sun, 27 Feb 2011 21:23:52 -0500 Received: from [222.73.24.84] (port=61391 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ptsm6-00059K-QS for qemu-devel@nongnu.org; Sun, 27 Feb 2011 21:23:51 -0500 Received: from tang.cn.fujitsu.com (tang.cn.fujitsu.com [10.167.250.3]) by song.cn.fujitsu.com (Postfix) with ESMTP id 8608F170175 for ; Mon, 28 Feb 2011 10:23:46 +0800 (CST) Received: from mailserver.fnst.cn.fujitus.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id p1S2HwCh030771 for ; Mon, 28 Feb 2011 10:17:58 +0800 Message-ID: <4D6B06E9.7080303@cn.fujitsu.com> Date: Mon, 28 Feb 2011 10:22:33 +0800 From: Wen Congyang MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] fix build errors when we enable acpi_piix4 debug List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel I enable acpi=5Fpiix4 debug, and got the following build errors: # make CC libhw64/acpi=5Fpiix4.o cc1: warnings being treated as errors /home/wency/source/qemu/hw/acpi=5Fpiix4.c: In function =91pm=5Fioport=5Fwri= te=92: /home/wency/source/qemu/hw/acpi=5Fpiix4.c:193: error: format =91%04x=92 exp= ects type =91unsigned int=92, but argument 2 has type =91uint64=5Ft=92 /home/wency/source/qemu/hw/acpi=5Fpiix4.c:193: error: format =91%04x=92 exp= ects type =91unsigned int=92, but argument 3 has type =91uint64=5Ft=92 /home/wency/source/qemu/hw/acpi=5Fpiix4.c: In function =91pm=5Fioport=5Frea= d=92: /home/wency/source/qemu/hw/acpi=5Fpiix4.c:219: error: format =91%04x=92 exp= ects type =91unsigned int=92, but argument 2 has type =91uint64=5Ft=92 make[1]: *** [acpi=5Fpiix4.o] Error 1 make: *** [subdir-libhw64] Error 2 Signed-off-by: Wen Congyang --- hw/acpi=5Fpiix4.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/acpi=5Fpiix4.c b/hw/acpi=5Fpiix4.c index 5bbc2b5..b5a2762 100644 --- a/hw/acpi=5Fpiix4.c +++ b/hw/acpi=5Fpiix4.c @@ -190,7 +190,8 @@ static void pm=5Fioport=5Fwrite(IORange *ioport, uint64= =5Ft addr, unsigned width, default: break; } - PIIX4=5FDPRINTF("PM writew port=3D0x%04x val=3D0x%04x\n", addr, val); + PIIX4=5FDPRINTF("PM writew port=3D0x%04x val=3D0x%04x\n", (unsigned in= t)addr, + (unsigned int)val); } =20 static void pm=5Fioport=5Fread(IORange *ioport, uint64=5Ft addr, unsigned = width, @@ -216,7 +217,7 @@ static void pm=5Fioport=5Fread(IORange *ioport, uint64= =5Ft addr, unsigned width, val =3D 0; break; } - PIIX4=5FDPRINTF("PM readw port=3D0x%04x val=3D0x%04x\n", addr, val); + PIIX4=5FDPRINTF("PM readw port=3D0x%04x val=3D0x%04x\n", (unsigned int= )addr, val); *data =3D val; } =20 --=20 1.7.1