From patchwork Mon May 10 02:32:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] ehci: Fix debug traces Date: Sun, 09 May 2010 16:32:08 -0000 From: Vincent Palatin X-Patchwork-Id: 52088 Message-Id: <1273458728-24918-3-git-send-email-vincent.palatin_qemu@m4x.org> To: qemu-devel@nongnu.org Cc: Vincent Palatin , Jan Kiszka , David Ahern - fix build error when activating traces - properly display the config flags register Signed-off-by: Vincent Palatin --- 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);