Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nick-nhusb]: src/sys/dev/usb Debug improvements



details:   https://anonhg.NetBSD.org/src/rev/aa7007b2da70
branches:  nick-nhusb
changeset: 804509:aa7007b2da70
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jan 09 14:55:53 2016 +0000

description:
Debug improvements

diffstat:

 sys/dev/usb/ohci.c |  16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diffs (53 lines):

diff -r 5e660c9bdeec -r aa7007b2da70 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Fri Jan 08 13:42:55 2016 +0000
+++ b/sys/dev/usb/ohci.c        Sat Jan 09 14:55:53 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.254.2.39 2016/01/08 13:42:55 skrll Exp $    */
+/*     $NetBSD: ohci.c,v 1.254.2.40 2016/01/09 14:55:53 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.39 2016/01/08 13:42:55 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.40 2016/01/09 14:55:53 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -2058,7 +2058,7 @@
            BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
 
        uint32_t flags = O32TOH(std->td.td_flags);
-       DPRINTF("TD(%p) at %08lx:", std, (u_long)std->physaddr, 0, 0);
+       DPRINTF("TD(%p) at 0x%08lx:", std, (u_long)std->physaddr, 0, 0);
        DPRINTF("    round=%d DP=%x DI=%x T=%x",
            !!(flags & OHCI_TD_R),
            __SHIFTOUT(flags, OHCI_TD_DP_MASK),
@@ -2081,7 +2081,7 @@
            BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
 
        uint32_t flags = O32TOH(sitd->itd.itd_flags);
-       DPRINTF("ITD(%p) at %08lx", sitd, (u_long)sitd->physaddr, 0, 0);
+       DPRINTF("ITD(%p) at 0x%08lx", sitd, (u_long)sitd->physaddr, 0, 0);
        DPRINTF("    sf=%d di=%d fc=%d cc=%d",
            OHCI_ITD_GET_SF(flags), OHCI_ITD_GET_DI(flags),
            OHCI_ITD_GET_FC(flags), OHCI_ITD_GET_CC(flags));
@@ -2837,13 +2837,11 @@
        isread = req->bmRequestType & UT_READ;
        len = UGETW(req->wLength);
 
-       DPRINTF("type=0x%02x, request=0x%02x, "
-           "wValue=0x%04x, wIndex=0x%04x",
+       DPRINTF("xfer=%p len=%d, addr=%d, endpt=%d", xfer, len, dev->ud_addr,
+           opipe->pipe.up_endpoint->ue_edesc->bEndpointAddress);
+       DPRINTF("type=0x%02x, request=0x%02x, wValue=0x%04x, wIndex=0x%04x",
            req->bmRequestType, req->bRequest, UGETW(req->wValue),
            UGETW(req->wIndex));
-       DPRINTF("len=%d, addr=%d, endpt=%d",
-           len, dev->ud_addr,
-           opipe->pipe.up_endpoint->ue_edesc->bEndpointAddress, 0);
 
        /* Need to take lock here for pipe->tail.td */
        mutex_enter(&sc->sc_lock);



Home | Main Index | Thread Index | Old Index