diff options
author | Ryan Harper <ryanh@us.ibm.com> | 2009-11-20 13:55:12 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 15:26:00 -0600 |
commit | b4b2f05403c30a655cd74584a74b2f4e135d4260 (patch) | |
tree | 01e103b5d14f7fa7b1c905e93de27875199b0abf /hw | |
parent | 01d86a8544e9c8dd1cf12f66ce850db365c38f25 (diff) |
Fix compile error when LSI_DEBUG is defined
This patch fixes the follow error when LSI_DEBUG is set.
CC libhw64/lsi53c895a.o
cc1: warnings being treated as errors
qemu/hw/lsi53c895a.c: In function 'lsi_io_mapfunc':
qemu/hw/lsi53c895a.c:1932: error: format '%08x' expects type 'unsigned int', but argument 2 has type 'pcibus_t'
qemu/hw/lsi53c895a.c: In function 'lsi_ram_mapfunc':
/qemu/hw/lsi53c895a.c:1947: error: format '%08x' expects type 'unsigned int', but argument 2 has type 'pcibus_t'
qemu/hw/lsi53c895a.c: In function 'lsi_mmio_mapfunc':
qemu/hw/lsi53c895a.c:1957: error: format '%08x' expects type 'unsigned int', but argument 2 has type 'pcibus_t'
make[1]: *** [lsi53c895a.o] Error 1
make: *** [subdir-libhw64] Error 2
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/lsi53c895a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 9abac94c24..014c85dbda 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -1973,7 +1973,7 @@ static void lsi_io_mapfunc(PCIDevice *pci_dev, int region_num, { LSIState *s = DO_UPCAST(LSIState, dev, pci_dev); - DPRINTF("Mapping IO at %08x\n", addr); + DPRINTF("Mapping IO at %08"FMT_PCIBUS"\n", addr); register_ioport_write(addr, 256, 1, lsi_io_writeb, s); register_ioport_read(addr, 256, 1, lsi_io_readb, s); @@ -1988,7 +1988,7 @@ static void lsi_ram_mapfunc(PCIDevice *pci_dev, int region_num, { LSIState *s = DO_UPCAST(LSIState, dev, pci_dev); - DPRINTF("Mapping ram at %08x\n", addr); + DPRINTF("Mapping ram at %08"FMT_PCIBUS"\n", addr); s->script_ram_base = addr; cpu_register_physical_memory(addr + 0, 0x2000, s->ram_io_addr); } @@ -1998,7 +1998,7 @@ static void lsi_mmio_mapfunc(PCIDevice *pci_dev, int region_num, { LSIState *s = DO_UPCAST(LSIState, dev, pci_dev); - DPRINTF("Mapping registers at %08x\n", addr); + DPRINTF("Mapping registers at %08"FMT_PCIBUS"\n", addr); cpu_register_physical_memory(addr + 0, 0x400, s->mmio_io_addr); } |