summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2010-05-17 23:46:45 +0000
committerthompsa <thompsa@FreeBSD.org>2010-05-17 23:46:45 +0000
commit54d7ece83ab558ac574f1d089b1e07cf3696579b (patch)
tree7cffb04f67b3325b2a1f6e9846fbd49d47cd636f
parente27a64768d4e53fb46cc19ece7ca74d7fa47b675 (diff)
downloadFreeBSD-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.c6
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);
OpenPOWER on IntegriCloud