diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-05-12 22:44:57 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-05-12 22:44:57 +0000 |
commit | 31ec8e1b5f2792ef57b01755f587384e507920cc (patch) | |
tree | 08d668c9134d0d9850ab56f3b5be468d74ddbe56 | |
parent | 6903fb5ec365756d5bf9e830b0dcd21195468a32 (diff) | |
download | FreeBSD-src-31ec8e1b5f2792ef57b01755f587384e507920cc.zip FreeBSD-src-31ec8e1b5f2792ef57b01755f587384e507920cc.tar.gz |
Provide more information about the device location in the USB system.
Submitted by: Hans Petter Sekasky
-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); |