Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Simplify debug/DIAGNOSTIC code.
details: https://anonhg.NetBSD.org/src/rev/e8104dfb7cb1
branches: trunk
changeset: 791549:e8104dfb7cb1
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Nov 23 12:41:13 2013 +0000
description:
Simplify debug/DIAGNOSTIC code.
diffstat:
sys/dev/usb/ehci.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 4ed21a434ea2 -r e8104dfb7cb1 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Sat Nov 23 12:35:19 2013 +0000
+++ b/sys/dev/usb/ehci.c Sat Nov 23 12:41:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.216 2013/11/23 12:35:19 skrll Exp $ */
+/* $NetBSD: ehci.c,v 1.217 2013/11/23 12:41:13 skrll Exp $ */
/*
* Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.216 2013/11/23 12:35:19 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.217 2013/11/23 12:41:13 skrll Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -919,16 +919,15 @@
#ifdef DIAGNOSTIC
if (ex->isdone) {
+ printf("ehci_idone: ex=%p is done!\n", ex);
#ifdef EHCI_DEBUG
- printf("ehci_idone: ex is done!\n");
ehci_dump_exfer(ex);
-#else
- printf("ehci_idone: ex=%p is done!\n", ex);
#endif
return;
}
ex->isdone = 1;
#endif
+
if (xfer->status == USBD_CANCELLED ||
xfer->status == USBD_TIMEOUT) {
DPRINTF(("ehci_idone: aborted xfer=%p\n", xfer));
Home |
Main Index |
Thread Index |
Old Index