From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LupsH-0002en-5V for qemu-devel@nongnu.org; Fri, 17 Apr 2009 11:21:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LupsB-0002Zy-UG for qemu-devel@nongnu.org; Fri, 17 Apr 2009 11:21:03 -0400 Received: from [199.232.76.173] (port=45865 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LupsA-0002Z9-C3 for qemu-devel@nongnu.org; Fri, 17 Apr 2009 11:20:58 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41045) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lups9-0005jn-Hx for qemu-devel@nongnu.org; Fri, 17 Apr 2009 11:20:57 -0400 From: Glauber Costa Date: Fri, 17 Apr 2009 11:20:46 -0400 Message-Id: <1239981649-6366-4-git-send-email-glommer@redhat.com> In-Reply-To: <1239981649-6366-3-git-send-email-glommer@redhat.com> References: <1239981649-6366-1-git-send-email-glommer@redhat.com> <1239981649-6366-2-git-send-email-glommer@redhat.com> <1239981649-6366-3-git-send-email-glommer@redhat.com> Subject: [Qemu-devel] [PATCH 3/6] Fix warnings and errors with DEBUG enabled 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 Cc: jan.kiszka@siemens.com, aliguori@us.ibm.com Appearently nobody tried this yet. It produces tons of warning and an one error. Signed-off-by: Glauber Costa --- hw/acpi.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/acpi.c b/hw/acpi.c index 52f50a0..22fbc4a 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -604,7 +604,7 @@ static uint32_t gpe_readb(void *opaque, uint32_t addr) } #if defined(DEBUG) - printf("gpe read %lx == %lx\n", addr, val); + printf("gpe read %x == %x\n", addr, val); #endif return val; } @@ -646,7 +646,7 @@ static void gpe_writeb(void *opaque, uint32_t addr, uint32_t val) } #if defined(DEBUG) - printf("gpe write %lx <== %d\n", addr, val); + printf("gpe write %x <== %d\n", addr, val); #endif } @@ -666,7 +666,7 @@ static uint32_t pcihotplug_read(void *opaque, uint32_t addr) } #if defined(DEBUG) - printf("pcihotplug read %lx == %lx\n", addr, val); + printf("pcihotplug read %x == %x\n", addr, val); #endif return val; } @@ -684,14 +684,14 @@ static void pcihotplug_write(void *opaque, uint32_t addr, uint32_t val) } #if defined(DEBUG) - printf("pcihotplug write %lx <== %d\n", addr, val); + printf("pcihotplug write %x <== %d\n", addr, val); #endif } static uint32_t pciej_read(void *opaque, uint32_t addr) { #if defined(DEBUG) - printf("pciej read %lx == %lx\n", addr, val); + printf("pciej read %x == %x\n", addr, 0); #endif return 0; } @@ -705,7 +705,7 @@ static void pciej_write(void *opaque, uint32_t addr, uint32_t val) #endif #if defined(DEBUG) - printf("pciej write %lx <== %d\n", addr, val); + printf("pciej write %x <== %d\n", addr, val); #endif } -- 1.5.6.6