[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/9] ide: fix compilation errors when DEBUG_IDE is s
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 4/9] ide: fix compilation errors when DEBUG_IDE is set |
Date: |
Fri, 10 Feb 2012 11:34:08 +0000 |
From: Hervé Poussineau <address@hidden>
Signed-off-by: Hervé Poussineau <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
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
- [Qemu-devel] [PULL 0/9] Trivial patches for 28 January to 10 February 2012, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 1/9] linux-user: fail execve() if env/args too big, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 7/9] net: remove extra spaces in help messages, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 8/9] virtio: Remove unneeded g_free() check in virtio_cleanup(), Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 5/9] vl.c: Fix typo in variable name, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 3/9] cpu-exec.c: Correct comment about this file and indentation cleanup, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 6/9] fmopl: Fix typo in function name, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 9/9] linux-user: brk() debugging, Stefan Hajnoczi, 2012/02/10
- [Qemu-devel] [PATCH 4/9] ide: fix compilation errors when DEBUG_IDE is set,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 2/9] CODING_STYLE: Clarify style for enum and function type names, Stefan Hajnoczi, 2012/02/10
- Re: [Qemu-devel] [PULL 0/9] Trivial patches for 28 January to 10 February 2012, Anthony Liguori, 2012/02/17