Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2010 22:44:57 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208010 - head/sys/dev/usb
Message-ID:  <201005122244.o4CMivJQ045674@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005122244.o4CMivJQ045674>