When a port cannot be set up, report the error code in the `disabling

port X' message.
This commit is contained in:
iedowse 2004-11-09 19:46:57 +00:00
parent 9e1a271f2f
commit 50d51dddeb

View File

@ -535,8 +535,8 @@ uhub_explore(usbd_device_handle dev)
* some other serious problem. Since we cannot leave
* at 0 we have to disable the port instead.
*/
printf("%s: device problem, disabling port %d\n",
USBDEVNAME(sc->sc_dev), port);
printf("%s: device problem (%s), disabling port %d\n",
USBDEVNAME(sc->sc_dev), usbd_errstr(err), port);
usbd_clear_port_feature(dev, port, UHF_PORT_ENABLE);
} else {
/* The port set up succeeded, reset error count. */