Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Improve diagnostic print seen in PR 51524.
details: https://anonhg.NetBSD.org/src/rev/87ee814516ce
branches: trunk
changeset: 348058:87ee814516ce
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Oct 03 00:32:37 2016 +0000
description:
Improve diagnostic print seen in PR 51524.
diffstat:
sys/dev/usb/ehci.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r da9f6c0741b6 -r 87ee814516ce sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Sun Oct 02 23:14:19 2016 +0000
+++ b/sys/dev/usb/ehci.c Mon Oct 03 00:32:37 2016 +0000
@@ -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 @@
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
}
Home |
Main Index |
Thread Index |
Old Index