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

This commit is contained in:
mrg 2022-02-09 07:32:33 +00:00
parent c9e8875407
commit 2cbd04c321
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ 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;
}