Author: thompsa
Date: Wed May 12 22:44:57 2010
New Revision: 208010
URL: http://svn.freebsd.org/changeset/base/208010

Log:
  Provide more information about the device location in the USB system.
  
  Submitted by: Hans Petter Sekasky

Modified:
  head/sys/dev/usb/usb_hub.c

Modified: head/sys/dev/usb/usb_hub.c
==============================================================================
--- head/sys/dev/usb/usb_hub.c  Wed May 12 22:43:33 2010        (r208009)
+++ head/sys/dev/usb/usb_hub.c  Wed May 12 22:44:57 2010        (r208010)
@@ -1010,8 +1010,10 @@ uhub_child_location_string(device_t pare
                }
                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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to