From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJsH5-0000Pv-Se for qemu-devel@nongnu.org; Fri, 28 Oct 2011 15:39:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJsH5-00039H-1k for qemu-devel@nongnu.org; Fri, 28 Oct 2011 15:39:31 -0400 Received: from server514c.exghost.com ([72.32.253.76]:3117 helo=server514.appriver.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJsH4-00039B-Uu for qemu-devel@nongnu.org; Fri, 28 Oct 2011 15:39:31 -0400 Received: from [72.32.253.65] (HELO FE03.exg4.exghost.com) by server514.appriver.com (CommuniGate Pro SMTP 5.4.1) with ESMTP id 239869474 for qemu-devel@nongnu.org; Fri, 28 Oct 2011 14:39:30 -0500 Message-ID: <4EAB04EF.3080208@virtualcomputer.com> Date: Fri, 28 Oct 2011 15:39:27 -0400 From: John Baboval MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] IDE Debug compiler warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This fixes up a few compiler warnings/errors when building with IDE_DEBUG or AHCI_DEBUG enabled. Signed-off-by: John V. Baboval --- hw/ide/ahci.c | 2 +- hw/ide/pci.c | 2 +- hw/ide/piix.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 1c7e3a0..79277bb 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -327,7 +327,7 @@ static void ahci_mem_write(void *opaque, target_phys_addr_t addr, } if (addr < AHCI_GENERIC_HOST_CONTROL_REGS_MAX_ADDR) { - DPRINTF(-1, "(addr 0x%08X), val 0x%08X\n", (unsigned) addr, val); + DPRINTF(-1, "(addr 0x%08X), val 0x%08lX\n", (unsigned) addr, val); switch (addr) { case HOST_CAP: /* R/WO, RO */ diff --git a/hw/ide/pci.c b/hw/ide/pci.c index f133c42..0d3f2f9 100644 --- a/hw/ide/pci.c +++ b/hw/ide/pci.c @@ -335,7 +335,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 08cbbe2..3d71126 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%02lx : 0x%02x\n", 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%02lx : 0x%02lx\n", addr, val); #endif switch(addr & 3) { case 0: -- 1.7.4.1