MFC r261270:

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.
This commit is contained in:
n_hibma 2014-06-18 22:09:33 +00:00
parent 0ce2e66f4e
commit 7944ea7242

View File

@ -1625,8 +1625,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);