Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in dev.<USB driver>.<id>.%location output from sysctl. MFC after: 2 weeks
This commit is contained in:
parent
773a89d478
commit
ab09414257
@ -1597,8 +1597,9 @@ 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, device_get_unit(res.udev->bus->bdev),
|
||||
res.portno,
|
||||
res.udev->device_index, res.iface_index);
|
||||
done:
|
||||
mtx_unlock(&Giant);
|
||||
|
Loading…
x
Reference in New Issue
Block a user