Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Don't report errors as timeout.
details: https://anonhg.NetBSD.org/src/rev/0cb06c650006
branches: trunk
changeset: 368733:0cb06c650006
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jul 31 12:59:26 2022 +0000
description:
Don't report errors as timeout.
diffstat:
sys/dev/usb/if_urtwn.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r cf576b24b98b -r 0cb06c650006 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Sun Jul 31 12:40:35 2022 +0000
+++ b/sys/dev/usb/if_urtwn.c Sun Jul 31 12:59:26 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urtwn.c,v 1.104 2022/06/23 13:46:27 brook Exp $ */
+/* $NetBSD: if_urtwn.c,v 1.105 2022/07/31 12:59:26 mlelstv Exp $ */
/* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */
/*-
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.104 2022/06/23 13:46:27 brook Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.105 2022/07/31 12:59:26 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2624,7 +2624,8 @@
struct usbd_pipe *pipe = sc->tx_pipe[pidx];
usbd_clear_endpoint_stall_async(pipe);
}
- device_printf(sc->sc_dev, "device timeout\n");
+ device_printf(sc->sc_dev, "transmit failed, %s\n",
+ usbd_errstr(status));
if_statinc(ifp, if_oerrors);
}
splx(s);
Home |
Main Index |
Thread Index |
Old Index