diff mbox

[2/2] ehci: Fix debug traces

Message ID 1273458728-24918-3-git-send-email-vincent.palatin_qemu@m4x.org
State New
Headers show

Commit Message

Vincent Palatin May 10, 2010, 2:32 a.m. UTC
- fix build error when activating traces
- properly display the config flags register

Signed-off-by: Vincent Palatin <vincent.palatin_qemu@m4x.org>
---
 hw/usb-ehci.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
index e724653..ab9a23e 100644
--- a/hw/usb-ehci.c
+++ b/hw/usb-ehci.c
@@ -469,6 +469,10 @@  static const char *addr2str(unsigned addr)
         case PORTSC_BEGIN ... PORTSC_END:
             r = "PORT STATUS";
             break;
+
+        case CONFIGFLAG:
+            r = "CONFIG FLAG";
+            break;
     }
 
     return r;
@@ -1956,7 +1960,7 @@  static void ehci_map(PCIDevice *pci_dev, int region_num,
 {
     EHCIState *s =(EHCIState *)pci_dev;
 
-    DPRINTF("ehci_map: region %d, addr %08lX, size %ld, s->mem %08X\n",
+    DPRINTF("ehci_map: region %d, addr %08llX, size %lld, s->mem %08X\n",
             region_num, addr, size, s->mem);
     s->mem_base = addr;
     cpu_register_physical_memory(addr, size, s->mem);