When a port cannot be set up, report the error code in the `disabling
port X' message.
This commit is contained in:
parent
9e1a271f2f
commit
50d51dddeb
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user