Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb if the interrupt pipe can't be opened, also prin...



details:   https://anonhg.NetBSD.org/src/rev/5e364b1010b8
branches:  trunk
changeset: 360015:5e364b1010b8
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Feb 09 07:32:33 2022 +0000

description:
if the interrupt pipe can't be opened, also print the error.

diffstat:

 sys/dev/usb/umcs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 52d2233aad8a -r 5e364b1010b8 sys/dev/usb/umcs.c
--- a/sys/dev/usb/umcs.c        Wed Feb 09 07:30:35 2022 +0000
+++ b/sys/dev/usb/umcs.c        Wed Feb 09 07:32:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umcs.c,v 1.17 2021/08/07 16:19:17 thorpej Exp $ */
+/* $NetBSD: umcs.c,v 1.18 2022/02/09 07:32:33 mrg Exp $ */
 /* $FreeBSD: head/sys/dev/usb/serial/umcs.c 260559 2014-01-12 11:44:28Z hselasky $ */
 
 /*-
@@ -41,7 +41,7 @@
  *
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umcs.c,v 1.17 2021/08/07 16:19:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umcs.c,v 1.18 2022/02/09 07:32:33 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -283,7 +283,7 @@
                    sc->sc_intr_buflen, umcs7840_intr, 100);
        if (error) {
                aprint_error_dev(self, "cannot open interrupt pipe "
-                   "(addr %d)\n", intr_addr);
+                   "(addr %d): error %d\n", intr_addr, error);
                sc->sc_dying = true;
                return;
        }



Home | Main Index | Thread Index | Old Index