Module Name: src
Committed By: dholland
Date: Mon Oct 3 00:32:37 UTC 2016
Modified Files:
src/sys/dev/usb: ehci.c
Log Message:
Improve diagnostic print seen in PR 51524.
To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/dev/usb/ehci.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.253 src/sys/dev/usb/ehci.c:1.254
--- src/sys/dev/usb/ehci.c:1.253 Sun Aug 14 14:42:22 2016
+++ src/sys/dev/usb/ehci.c Mon Oct 3 00:32:37 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.253 2016/08/14 14:42:22 skrll Exp $ */
+/* $NetBSD: ehci.c,v 1.254 2016/10/03 00:32:37 dholland 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.253 2016/08/14 14:42:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.254 2016/10/03 00:32:37 dholland Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -2168,8 +2168,11 @@ ehci_sync_hc(ehci_softc_t *sc)
DPRINTF("cmd = 0x%08x sts = 0x%08x ... done",
EOREAD4(sc, EHCI_USBCMD), EOREAD4(sc, EHCI_USBSTS), 0, 0);
#ifdef DIAGNOSTIC
- if (error)
- printf("ehci_sync_hc: cv_timedwait() = %d\n", error);
+ if (error == EWOULDBLOCK) {
+ printf("ehci_sync_hc: timed out\n");
+ } else if (error) {
+ printf("ehci_sync_hc: cv_timedwait: error %d\n", error);
+ }
#endif
}