From: "Gabriel L. Somlo" <gsomlo@gmail.com>
To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org
Cc: somlo@cmu.edu, jbaron@redhat.com, kraxel@redhat.com
Subject: [Qemu-devel] [PATCH] ehci: fix compile error with EHCI_DEBUG enabled
Date: Mon, 12 Nov 2012 09:49:19 -0500 [thread overview]
Message-ID: <20121112144918.GA2107@hedwig.ini.cmu.edu> (raw)
In-Reply-To: <50A0CECA.9060102@redhat.com>
This patch fixes a few debugging print statements whose arguments fell
out of sync over time with changes being made to the active code base.
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
---
On Mon, Nov 12, 2012 at 11:26:18AM +0100, Gerd Hoffmann wrote:
> Seems macos doesn't like something in our ehci emulation ...
> Can you send a trace with all ehci tracepoints enabled?
Turning EHCI_DEBUG on gave me compile errors. This is my best guess
as to what the DPRINTF arguments *should* be, hope I guessed right :)
This patch works against both master and the q35 branch, BTW.
I'll reply to your email again with the debug output, figured I'd get
this out of the way first...
Thanks,
Gabriel
hw/usb/hcd-ehci.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index d9dc576..e3ccb59 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -1188,7 +1188,7 @@ static void ehci_execute_complete(EHCIQueue *q)
p->async == EHCI_ASYNC_FINISHED);
DPRINTF("execute_complete: qhaddr 0x%x, next %x, qtdaddr 0x%x, status %d\n",
- q->qhaddr, q->qh.next, q->qtdaddr, q->usb_status);
+ q->qhaddr, q->qh.next, q->qtdaddr, p->usb_status);
if (p->usb_status < 0) {
switch (p->usb_status) {
@@ -1305,8 +1305,8 @@ static int ehci_execute(EHCIPacket *p, const char *action)
trace_usb_ehci_packet_action(p->queue, p, action);
ret = usb_handle_packet(p->queue->dev, &p->packet);
DPRINTF("submit: qh %x next %x qtd %x pid %x len %zd endp %x ret %d\n",
- q->qhaddr, q->qh.next, q->qtdaddr, q->pid,
- q->packet.iov.size, endp, ret);
+ p->queue->qhaddr, p->queue->qh.next, p->queue->qtdaddr, p->pid,
+ p->packet.iov.size, endp, ret);
if (ret > BUFF_SIZE) {
fprintf(stderr, "ret from usb_handle_packet > BUFF_SIZE\n");
--
1.7.7.6
next prev parent reply other threads:[~2012-11-12 14:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-11 22:16 [Qemu-devel] q35, usb-ehci1, and Mac OS X boot problems Gabriel L. Somlo
2012-11-12 10:26 ` Gerd Hoffmann
2012-11-12 14:49 ` Gabriel L. Somlo [this message]
2012-11-16 13:50 ` [Qemu-devel] [PATCH] ehci: fix compile error with EHCI_DEBUG enabled Stefan Hajnoczi
2012-11-16 13:54 ` Gerd Hoffmann
2012-11-12 15:17 ` [Qemu-devel] q35, usb-ehci1, and Mac OS X boot problems Gabriel L. Somlo
2012-11-13 8:48 ` Gerd Hoffmann
2012-11-13 15:48 ` Gabriel L. Somlo
2012-11-13 16:31 ` Gerd Hoffmann
2012-11-13 17:28 ` Gabriel L. Somlo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121112144918.GA2107@hedwig.ini.cmu.edu \
--to=gsomlo@gmail.com \
--cc=jbaron@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=somlo@cmu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).