Module Name:    src
Committed By:   mlelstv
Date:           Sun Jul 31 12:59:26 UTC 2022

Modified Files:
        src/sys/dev/usb: if_urtwn.c

Log Message:
Don't report errors as timeout.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/usb/if_urtwn.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/if_urtwn.c
diff -u src/sys/dev/usb/if_urtwn.c:1.104 src/sys/dev/usb/if_urtwn.c:1.105
--- src/sys/dev/usb/if_urtwn.c:1.104	Thu Jun 23 13:46:27 2022
+++ src/sys/dev/usb/if_urtwn.c	Sun Jul 31 12:59:26 2022
@@ -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 @@ urtwn_txeof(struct usbd_xfer *xfer, void
 				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);

Reply via email to