Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/dwc2 Improve a couple of DPRINTFs



details:   https://anonhg.NetBSD.org/src/rev/ac4a061f37de
branches:  trunk
changeset: 790144:ac4a061f37de
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Sep 21 13:17:00 2013 +0000

description:
Improve a couple of DPRINTFs

diffstat:

 sys/external/bsd/dwc2/dwc2.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r e5752fb3c812 -r ac4a061f37de sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Sat Sep 21 08:40:37 2013 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Sat Sep 21 13:17:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.1 2013/09/05 20:25:27 skrll Exp $   */
+/*     $NetBSD: dwc2.c,v 1.2 2013/09/21 13:17:00 skrll Exp $   */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.1 2013/09/05 20:25:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.2 2013/09/21 13:17:00 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -1240,10 +1240,11 @@
                usb_device_request_t *req = &xfer->request;
 
                DPRINTFN(3, "xfer=%p, type=0x%02x, request=0x%02x, wValue=0x%04x,"
-                   "wIndex=0x%04x len=%d, addr=%d, endpt=%d, dir=%s, speed=%d\n",
+                   "wIndex=0x%04x len=%d, addr=%d, endpt=%d, dir=%s, speed=%d"
+                   "mps=%d\n",
                    xfer, req->bmRequestType, req->bRequest, UGETW(req->wValue),
                    UGETW(req->wIndex), UGETW(req->wLength), dev->address,
-                   epnum, dir == UT_READ ? "in" :"out", dev->speed);
+                   epnum, dir == UT_READ ? "in" :"out", dev->speed, mps);
 
                /* Copy request packet to our DMA buffer */
                memcpy(KERNADDR(&dpipe->req_dma, 0), req, sizeof(*req));
@@ -1261,8 +1262,8 @@
                    len, dir == UE_DIR_IN ? "in" : "out");
        } else {
                DPRINTFN(3, "xfer=%p, len=%d, flags=%d, addr=%d, endpt=%d,"
-                   " dir %s\n", xfer, xfer->length, xfer->flags, addr, epnum,
-                   dir == UT_READ ? "in" :"out");
+                   " mps=%d dir %s\n", xfer, xfer->length, xfer->flags, addr,
+                   epnum, mps, dir == UT_READ ? "in" :"out");
 
                len = xfer->length;
        }



Home | Main Index | Thread Index | Old Index