Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.
PR: 198015 PR: 198019 PR: 198026 MFC after: 1 week
This commit is contained in:
parent
7f661e0eb8
commit
a3e7eefea3
@ -1681,11 +1681,19 @@ uhub_child_location_string(device_t parent, device_t child,
|
||||
}
|
||||
goto done;
|
||||
}
|
||||
snprintf(buf, buflen, "bus=%u hubaddr=%u port=%u devaddr=%u interface=%u",
|
||||
device_get_unit(res.udev->bus->bdev),
|
||||
(res.udev->parent_hub != NULL) ? res.udev->parent_hub->device_index : 0,
|
||||
res.portno,
|
||||
res.udev->device_index, res.iface_index);
|
||||
snprintf(buf, buflen, "bus=%u hubaddr=%u port=%u devaddr=%u"
|
||||
" interface=%u"
|
||||
#if USB_HAVE_UGEN
|
||||
" ugen=%s"
|
||||
#endif
|
||||
, device_get_unit(res.udev->bus->bdev)
|
||||
, (res.udev->parent_hub != NULL) ?
|
||||
res.udev->parent_hub->device_index : 0
|
||||
, res.portno, res.udev->device_index, res.iface_index
|
||||
#if USB_HAVE_UGEN
|
||||
, res.udev->ugen_name
|
||||
#endif
|
||||
);
|
||||
done:
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
@ -1727,7 +1735,7 @@ uhub_child_pnpinfo_string(device_t parent, device_t child,
|
||||
"release=0x%04x "
|
||||
"mode=%s "
|
||||
"intclass=0x%02x intsubclass=0x%02x "
|
||||
"intprotocol=0x%02x " "%s%s",
|
||||
"intprotocol=0x%02x" "%s%s",
|
||||
UGETW(res.udev->ddesc.idVendor),
|
||||
UGETW(res.udev->ddesc.idProduct),
|
||||
res.udev->ddesc.bDeviceClass,
|
||||
|
Loading…
x
Reference in New Issue
Block a user