From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHumz-000337-Rl for qemu-devel@nongnu.org; Tue, 19 Mar 2013 07:33:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHufu-0006pm-FM for qemu-devel@nongnu.org; Tue, 19 Mar 2013 07:26:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHufu-0006pf-2v for qemu-devel@nongnu.org; Tue, 19 Mar 2013 07:25:50 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2JBPlFR018803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Mar 2013 07:25:48 -0400 From: Kevin Wolf Date: Tue, 19 Mar 2013 12:25:43 +0100 Message-Id: <1363692343-22299-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH] serial: Fix debug format strings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com This fixes the build of hw/serial.c with DEBUG_SERIAL enabled. Signed-off-by: Kevin Wolf --- hw/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/serial.c b/hw/serial.c index 48a5eb6..0ccc499 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -306,7 +306,7 @@ static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val, SerialState *s = opaque; addr &= 7; - DPRINTF("write addr=0x%02x val=0x%02x\n", addr, val); + DPRINTF("write addr=0x%" HWADDR_PRIx " val=0x%" PRIx64 "\n", addr, val); switch(addr) { default: case 0: @@ -527,7 +527,7 @@ static uint64_t serial_ioport_read(void *opaque, hwaddr addr, unsigned size) ret = s->scr; break; } - DPRINTF("read addr=0x%02x val=0x%02x\n", addr, ret); + DPRINTF("read addr=0x%" HWADDR_PRIx " val=0x%02x\n", addr, ret); return ret; } -- 1.8.1.4