diff options
Diffstat (limited to 'usr.sbin/usbd/usbd.c')
-rw-r--r-- | usr.sbin/usbd/usbd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c index 3cc157e..b5fda98 100644 --- a/usr.sbin/usbd/usbd.c +++ b/usr.sbin/usbd/usbd.c @@ -942,6 +942,13 @@ main(int argc, char **argv) if (fds[ndevs] > maxfd) maxfd = fds[ndevs]; ndevs++; + } else if (errno != ENXIO) { + /* there was an error, on a device that does + * exist (device is configured) + */ + fprintf(stderr, "%s: Could not open %s, %s\n", + __progname, buf, strerror(errno)); + exit(1); } } } else { |