- fix build error when activating traces
- properly display the config flags register

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

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);
-- 
1.5.6.5



Reply via email to