Received: from eggs.gnu.org ([208.118.235.92]:42496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URYxa-00050W-3e for qemu-devel@nongnu.org; Sun, 14 Apr 2013 22:15:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URYxY-0000gF-Vf for qemu-devel@nongnu.org; Sun, 14 Apr 2013 22:15:58 -0400 Received: from [222.73.24.84] (port=41948 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URYxY-0000fy-L0 for qemu-devel@nongnu.org; Sun, 14 Apr 2013 22:15:56 -0400 Received: from fnstmail02.fnst.cn.fujitsu.com (tang.cn.fujitsu.com [127.0.0.1]) by tang.cn.fujitsu.com (8.14.3/8.13.1) with ESMTP id r3F2FsaH002239 for ; Mon, 15 Apr 2013 10:15:54 +0800 From: liguang Date: Mon, 15 Apr 2013 10:14:26 +0800 Message-Id: <1365992066-24348-3-git-send-email-lig.fnst@cn.fujitsu.com> In-Reply-To: <1365992066-24348-1-git-send-email-lig.fnst@cn.fujitsu.com> References: <1365992066-24348-1-git-send-email-lig.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 3/3] debugcon: fix compiler warning when open DEBUG_DEBUGCON List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: liguang compiler warnings: CC hw/char/debugcon.o hw/char/debugcon.c: In function =E2=80=98debugcon=5Fioport=5Fwrite=E2=80=99: hw/char/debugcon.c:58: warning: format =E2=80=98%02x=E2=80=99 expects type = =E2=80=98unsigned int=E2=80=99, but argument 3 has type =E2=80=98uint64=5Ft= =E2=80=99 hw/char/debugcon.c: In function =E2=80=98debugcon=5Fioport=5Fread=E2=80=99: hw/char/debugcon.c:70: warning: format =E2=80=98%04x=E2=80=99 expects type = =E2=80=98unsigned int=E2=80=99, but argument 2 has type =E2=80=98hwaddr=E2= =80=99 Signed-off-by: liguang --- hw/char/debugcon.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index b6f2b06..a0d3633 100644 --- a/hw/char/debugcon.c +++ b/hw/char/debugcon.c @@ -33,7 +33,7 @@ #define ISA=5FDEBUGCON=5FDEVICE(obj) \ OBJECT=5FCHECK(ISADebugconState, (obj), TYPE=5FISA=5FDEBUGCON=5FDEVIC= E) =20 -//#define DEBUG=5FDEBUGCON +#define DEBUG=5FDEBUGCON =20 typedef struct DebugconState { MemoryRegion io; @@ -55,7 +55,7 @@ static void debugcon=5Fioport=5Fwrite(void *opaque, hwadd= r addr, uint64=5Ft val, unsigned char ch =3D val; =20 #ifdef DEBUG=5FDEBUGCON - printf(" [debugcon: write addr=3D0x%04" HWADDR=5FPRIx " val=3D0x%02]\n= ", addr, val); + printf(" [debugcon: write addr=3D0x%04" HWADDR=5FPRIx " val=3D0x%02" P= RIx64 "]\n", addr, val); #endif =20 qemu=5Fchr=5Ffe=5Fwrite(s->chr, &ch, 1); @@ -67,7 +67,7 @@ static uint64=5Ft debugcon=5Fioport=5Fread(void *opaque, = hwaddr addr, unsigned width) DebugconState *s =3D opaque; =20 #ifdef DEBUG=5FDEBUGCON - printf("debugcon: read addr=3D0x%04x\n", addr); + printf("debugcon: read addr=3D0x%04" HWADDR=5FPRIx "\n", addr); #endif =20 return s->readback; --=20 1.7.2.5 =