From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvokT-0001Zn-K5 for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:34:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvokN-00071h-LR for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:34:41 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:42814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvokN-00071S-8C for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:34:35 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 10 Feb 2012 11:34:34 -0000 Received: from d06av10.portsmouth.uk.ibm.com (d06av10.portsmouth.uk.ibm.com [9.149.37.251]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1ABYLre1806402 for ; Fri, 10 Feb 2012 11:34:21 GMT Received: from d06av10.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av10.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q19LWQ3B015356 for ; Thu, 9 Feb 2012 16:32:26 -0500 From: Stefan Hajnoczi Date: Fri, 10 Feb 2012 11:34:08 +0000 Message-Id: <1328873653-10554-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1328873653-10554-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1328873653-10554-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 4/9] ide: fix compilation errors when DEBUG_IDE is set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: =?UTF-8?q?Herv=C3=A9=20Poussineau?= , qemu-devel@nongnu.org, Stefan Hajnoczi From: Hervé Poussineau Signed-off-by: Hervé Poussineau Signed-off-by: Stefan Hajnoczi --- hw/ide/pci.c | 2 +- hw/ide/piix.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ide/pci.c b/hw/ide/pci.c index 246dd57..88c0942 100644 --- a/hw/ide/pci.c +++ b/hw/ide/pci.c @@ -336,7 +336,7 @@ static uint64_t bmdma_addr_read(void *opaque, target_phys_addr_t addr, data = (bm->addr >> (addr * 8)) & mask; #ifdef DEBUG_IDE - printf("%s: 0x%08x\n", __func__, (unsigned)*data); + printf("%s: 0x%08x\n", __func__, (unsigned)data); #endif return data; } diff --git a/hw/ide/piix.c b/hw/ide/piix.c index bf4465b..76cf209 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -53,7 +53,7 @@ static uint64_t bmdma_read(void *opaque, target_phys_addr_t addr, unsigned size) break; } #ifdef DEBUG_IDE - printf("bmdma: readb 0x%02x : 0x%02x\n", addr, val); + printf("bmdma: readb 0x%02x : 0x%02x\n", (uint8_t)addr, val); #endif return val; } @@ -68,7 +68,7 @@ static void bmdma_write(void *opaque, target_phys_addr_t addr, } #ifdef DEBUG_IDE - printf("bmdma: writeb 0x%02x : 0x%02x\n", addr, val); + printf("bmdma: writeb 0x%02x : 0x%02x\n", (uint8_t)addr, (uint8_t)val); #endif switch(addr & 3) { case 0: -- 1.7.8.3