Provide more information about the device location in the USB system.

Submitted by:	Hans Petter Sekasky
This commit is contained in:
thompsa 2010-05-12 22:44:57 +00:00
parent 6903fb5ec3
commit 31ec8e1b5f

View File

@ -1010,8 +1010,10 @@ uhub_child_location_string(device_t parent, device_t child,
}
goto done;
}
snprintf(buf, buflen, "port=%u interface=%u",
res.portno, res.iface_index);
snprintf(buf, buflen, "bus=%u hubaddr=%u port=%u devaddr=%u interface=%u",
(res.udev->parent_hub != NULL) ? res.udev->parent_hub->device_index : 0,
res.portno, device_get_unit(res.udev->bus->bdev),
res.udev->device_index, res.iface_index);
done:
mtx_unlock(&Giant);