Root hubs don't have transaction translators, so skip printing the
message about them if the hub depth is zero.
This commit is contained in:
parent
0b07d58eb3
commit
20289f7920
@ -182,7 +182,7 @@ USB_ATTACH(uhub)
|
||||
usbd_devinfo(dev, 1, devinfo);
|
||||
USB_ATTACH_SETUP;
|
||||
|
||||
if (UHUB_IS_HIGH_SPEED(sc)) {
|
||||
if (dev->depth > 0 && UHUB_IS_HIGH_SPEED(sc)) {
|
||||
printf("%s: %s transaction translator%s\n",
|
||||
USBDEVNAME(sc->sc_dev),
|
||||
UHUB_IS_SINGLE_TT(sc) ? "single" : "multiple",
|
||||
|
Loading…
Reference in New Issue
Block a user