From patchwork Mon May 10 02:32:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Palatin X-Patchwork-Id: 52088 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C7538B7D49 for ; Tue, 11 May 2010 00:08:03 +1000 (EST) Received: from localhost ([127.0.0.1]:33171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBTeK-0002n7-9g for incoming@patchwork.ozlabs.org; Mon, 10 May 2010 10:08:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OBInD-0001im-1y for qemu-devel@nongnu.org; Sun, 09 May 2010 22:32:27 -0400 Received: from [140.186.70.92] (port=45611 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBIn7-0001hq-MJ for qemu-devel@nongnu.org; Sun, 09 May 2010 22:32:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBImx-0002Oy-9d for qemu-devel@nongnu.org; Sun, 09 May 2010 22:32:21 -0400 Received: from izumi-v2.palats.com ([91.121.80.203]:58768 helo=izumi.palats.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBImx-0002Ob-41 for qemu-devel@nongnu.org; Sun, 09 May 2010 22:32:11 -0400 Received: by izumi.palats.com (Postfix, from userid 1000) id 302611AA864E; Mon, 10 May 2010 04:32:08 +0200 (CEST) From: Vincent Palatin To: qemu-devel@nongnu.org Date: Mon, 10 May 2010 04:32:08 +0200 Message-Id: <1273458728-24918-3-git-send-email-vincent.palatin_qemu@m4x.org> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1273458728-24918-1-git-send-email-vincent.palatin_qemu@m4x.org> References: <1273458728-24918-1-git-send-email-vincent.palatin_qemu@m4x.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 10 May 2010 09:56:04 -0400 Cc: Vincent Palatin , Jan Kiszka , David Ahern Subject: [Qemu-devel] [PATCH 2/2] ehci: Fix debug traces X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org - 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);