Simplify debug/DIAGNOSTIC code.
This commit is contained in:
parent
9a3abd8adf
commit
42cf027742
@ -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 @@ ehci_idone(struct ehci_xfer *ex)
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (ex->isdone) {
|
||||
#ifdef EHCI_DEBUG
|
||||
printf("ehci_idone: ex is done!\n");
|
||||
ehci_dump_exfer(ex);
|
||||
#else
|
||||
printf("ehci_idone: ex=%p is done!\n", ex);
|
||||
#ifdef EHCI_DEBUG
|
||||
ehci_dump_exfer(ex);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
ex->isdone = 1;
|
||||
#endif
|
||||
|
||||
if (xfer->status == USBD_CANCELLED ||
|
||||
xfer->status == USBD_TIMEOUT) {
|
||||
DPRINTF(("ehci_idone: aborted xfer=%p\n", xfer));
|
||||
|
Loading…
x
Reference in New Issue
Block a user