summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2009-04-20 14:11:58 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2009-04-20 14:11:58 +0000
commitc1b4a23291e39b3206136343f3ed64e0b4d99654 (patch)
treee0520983d9d5a5ca27c98bfdd3209641be8ca471 /sys/dev/usb/ehci.c
parent530113ffa82091c5507446d53b554106f95af2ce (diff)
unbreak EHCI_DEBUG - usbd_dump_pipe() is only defined if USB_DEBUG is
also true. no binary change without EHCI_DEBUG. ok jsg@
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 8b09ba43e96..43ad4e08b9b 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.98 2009/02/14 20:05:09 chl Exp $ */
+/* $OpenBSD: ehci.c,v 1.99 2009/04/20 14:11:57 reyk Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -1265,7 +1265,7 @@ ehci_device_clear_toggle(usbd_pipe_handle pipe)
DPRINTF(("ehci_device_clear_toggle: epipe=%p status=0x%x\n",
epipe, epipe->sqh->qh.qh_qtd.qtd_status));
-#ifdef EHCI_DEBUG
+#if defined(EHCI_DEBUG) && defined(USB_DEBUG)
if (ehcidebug)
usbd_dump_pipe(pipe);
#endif
@@ -2982,7 +2982,7 @@ ehci_timeout(void *addr)
ehci_softc_t *sc = (ehci_softc_t *)epipe->pipe.device->bus;
DPRINTF(("ehci_timeout: exfer=%p\n", exfer));
-#ifdef ECHI_DEBUG
+#if defined(EHCI_DEBUG) && defined(USB_DEBUG)
if (ehcidebug > 1)
usbd_dump_pipe(exfer->xfer.pipe);
#endif