From 2cbd04c32145f9c56698475d665af89ddc2e37e3 Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 9 Feb 2022 07:32:33 +0000 Subject: [PATCH] if the interrupt pipe can't be opened, also print the error. --- sys/dev/usb/umcs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/umcs.c b/sys/dev/usb/umcs.c index 719ecdf0d09f..edffd49f0f6a 100644 --- a/sys/dev/usb/umcs.c +++ b/sys/dev/usb/umcs.c @@ -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 -__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 #include @@ -283,7 +283,7 @@ umcs7840_attach(device_t parent, device_t self, void *aux) 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; }