diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-05-17 23:46:45 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-05-17 23:46:45 +0000 |
commit | 54d7ece83ab558ac574f1d089b1e07cf3696579b (patch) | |
tree | 7cffb04f67b3325b2a1f6e9846fbd49d47cd636f | |
parent | e27a64768d4e53fb46cc19ece7ca74d7fa47b675 (diff) | |
download | FreeBSD-src-54d7ece83ab558ac574f1d089b1e07cf3696579b.zip FreeBSD-src-54d7ece83ab558ac574f1d089b1e07cf3696579b.tar.gz |
MFC r208010
Provide more information about the device location in the USB system.
-rw-r--r-- | sys/dev/usb/usb_hub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_hub.c b/sys/dev/usb/usb_hub.c index e1ab5a2..95e9b29 100644 --- a/sys/dev/usb/usb_hub.c +++ b/sys/dev/usb/usb_hub.c @@ -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); |