Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Suppress another debug output



details:   https://anonhg.NetBSD.org/src/rev/9cfb1dab074b
branches:  trunk
changeset: 330592:9cfb1dab074b
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Jul 15 02:25:45 2014 +0000

description:
Suppress another debug output

It's output when DDB.

Fix previous: DEBUG => XHCI_DEBUG

diffstat:

 sys/dev/usb/xhci.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 7a3331e84888 -r 9cfb1dab074b sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Mon Jul 14 21:56:03 2014 +0000
+++ b/sys/dev/usb/xhci.c        Tue Jul 15 02:25:45 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.17 2014/07/14 00:58:35 ozaki-r Exp $        */
+/*     $NetBSD: xhci.c,v 1.18 2014/07/15 02:25:45 ozaki-r Exp $        */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.17 2014/07/14 00:58:35 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.18 2014/07/15 02:25:45 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2809,7 +2809,9 @@
        xhci_db_write_4(sc, XHCI_DOORBELL(xs->xs_idx), dci);
 
        if (sc->sc_bus.use_polling) {
+#ifdef XHCI_DEBUG
                device_printf(sc->sc_dev, "%s polling\n", __func__);
+#endif
                //xhci_waitintr(sc, xfer);
        }
 
@@ -2826,7 +2828,7 @@
        const bool isread = UE_GET_DIR(endpt) == UE_DIR_IN;
        DPRINTF(("%s\n", __func__));
 
-#ifdef DEBUG
+#ifdef XHCI_DEBUG
        device_printf(sc->sc_dev, "%s %p slot %u dci %u\n", __func__, xfer,
            xs->xs_idx, dci);
 #endif



Home | Main Index | Thread Index | Old Index