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 Change a KASSERT to a KASSERTMSG and a...



details:   https://anonhg.NetBSD.org/src/rev/9b51b2649efa
branches:  trunk
changeset: 792426:9b51b2649efa
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jan 03 12:07:37 2014 +0000

description:
Change a KASSERT to a KASSERTMSG and add a DPRINTFN.

diffstat:

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

diffs (37 lines):

diff -r 4d1fc6d70826 -r 9b51b2649efa sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c      Fri Jan 03 10:30:47 2014 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c      Fri Jan 03 12:07:37 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwc2.c,v 1.23 2014/01/02 15:54:10 skrll Exp $  */
+/*     $NetBSD: dwc2.c,v 1.24 2014/01/03 12:07:37 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.23 2014/01/02 15:54:10 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.24 2014/01/03 12:07:37 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -343,7 +343,8 @@
        mutex_spin_enter(&hsotg->lock);
        while ((dxfer = TAILQ_FIRST(&sc->sc_complete)) != NULL) {
 
-               KASSERT(!callout_pending(&dxfer->xfer.timeout_handle));
+               KASSERTMSG(!callout_pending(&dxfer->xfer.timeout_handle), 
+                   "xfer %p pipe %p\n", dxfer, dxfer->xfer.pipe);
 
                /*
                 * dwc2_abort_xfer will remove this transfer from the
@@ -1702,6 +1703,8 @@
 
        xfer->actlen = dwc2_hcd_urb_get_actual_length(qtd->urb);
 
+       DPRINTFN(3, "xfer=%p actlen=%d\n", xfer, xfer->actlen);
+
        if (xfertype == UE_ISOCHRONOUS && dbg_perio()) {
                int i;
 



Home | Main Index | Thread Index | Old Index