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 Consistency with USBHIST_LOGN
details: https://anonhg.NetBSD.org/src/rev/c08d2a2b74d1
branches: nick-nhusb
changeset: 334366:c08d2a2b74d1
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jan 08 13:42:55 2016 +0000
description:
Consistency with USBHIST_LOGN
diffstat:
sys/dev/usb/ohci.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (126 lines):
diff -r 9b27e1dc1aaa -r c08d2a2b74d1 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Thu Jan 07 11:40:47 2016 +0000
+++ b/sys/dev/usb/ohci.c Fri Jan 08 13:42:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.254.2.38 2015/12/28 15:46:28 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.254.2.39 2016/01/08 13:42:55 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.38 2015/12/28 15:46:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.39 2016/01/08 13:42:55 skrll Exp $");
#include "opt_usb.h"
@@ -947,7 +947,7 @@
#ifdef OHCI_DEBUG
DPRINTFN(15, "--- dump start ---", 0, 0, 0 ,0);
- if (ohcidebug > 15) {
+ if (ohcidebug >= 15) {
for (i = 0; i < OHCI_NO_EDS; i++) {
DPRINTFN(15, "ed#%d ", i, 0, 0, 0);
ohci_dump_ed(sc, sc->sc_eds[i]);
@@ -1026,7 +1026,7 @@
goto bad5;
}
#ifdef OHCI_DEBUG
- if (ohcidebug > 15)
+ if (ohcidebug >= 15)
ohci_dumpregs(sc);
#endif
@@ -1087,7 +1087,7 @@
}
#ifdef OHCI_DEBUG
- if (ohcidebug > 5)
+ if (ohcidebug >= 5)
ohci_dumpregs(sc);
#endif
@@ -1488,7 +1488,7 @@
DPRINTFN(10, "sdone=%p sidone=%p", sdone, sidone, 0, 0);
DPRINTFN(10, "--- dump start ---", 0, 0, 0, 0);
#ifdef OHCI_DEBUG
- if (ohcidebug > 10) {
+ if (ohcidebug >= 10) {
for (std = sdone; std; std = std->dnext)
ohci_dump_td(sc, std);
}
@@ -1563,7 +1563,7 @@
}
DPRINTFN(10, "--- dump start ---", 0, 0, 0, 0);
#ifdef OHCI_DEBUG
- if (ohcidebug > 10) {
+ if (ohcidebug >= 10) {
DPRINTFN(10, "ITD done", 0, 0, 0, 0);
for (sitd = sidone; sitd; sitd = sitd->dnext)
ohci_dump_itd(sc, sitd);
@@ -2403,7 +2403,7 @@
#ifdef OHCI_DEBUG
DPRINTF("--- dump start ---", 0, 0, 0, 0);
- if (ohcidebug > 1) {
+ if (ohcidebug >= 2) {
DPRINTF("sed:", 0, 0, 0, 0);
ohci_dump_ed(sc, sed);
ohci_dump_tds(sc, p);
@@ -2942,7 +2942,7 @@
#ifdef OHCI_DEBUG
USBHIST_LOGN(ohcidebug, 5, "--- dump start ---", 0, 0, 0, 0);
- if (ohcidebug > 5) {
+ if (ohcidebug >= 5) {
ohci_dump_ed(sc, sed);
ohci_dump_tds(sc, setup);
}
@@ -2963,7 +2963,7 @@
#ifdef OHCI_DEBUG
DPRINTFN(20, "--- dump start ---", 0, 0, 0, 0);
- if (ohcidebug > 20) {
+ if (ohcidebug >= 20) {
delay(10000);
DPRINTFN(20, "status=%x", OREAD4(sc, OHCI_COMMAND_STATUS),
0, 0, 0);
@@ -3162,7 +3162,7 @@
#ifdef OHCI_DEBUG
DPRINTFN(5, "--- dump start ---", 0, 0, 0, 0);
- if (ohcidebug > 5) {
+ if (ohcidebug >= 5) {
ohci_dump_ed(sc, sed);
ohci_dump_tds(sc, data);
}
@@ -3349,7 +3349,7 @@
#ifdef OHCI_DEBUG
DPRINTFN(5, "--- dump start ---", 0, 0, 0, 0);
- if (ohcidebug > 5) {
+ if (ohcidebug >= 5) {
ohci_dump_ed(sc, sed);
ohci_dump_tds(sc, data);
}
@@ -3707,7 +3707,7 @@
xfer->ux_status = USBD_IN_PROGRESS;
#ifdef OHCI_DEBUG
- if (ohcidebug > 5) {
+ if (ohcidebug >= 5) {
DPRINTF("frame=%d", O32TOH(sc->sc_hcca->hcca_frame_number),
0, 0, 0);
ohci_dump_itds(sc, xfer->ux_hcpriv);
@@ -3726,7 +3726,7 @@
mutex_exit(&sc->sc_lock);
#ifdef OHCI_DEBUG
- if (ohcidebug > 5) {
+ if (ohcidebug >= 5) {
delay(150000);
DPRINTF("after frame=%d", O32TOH(sc->sc_hcca->hcca_frame_number),
0, 0, 0);
Home |
Main Index |
Thread Index |
Old Index