svn commit: r184466 - head/sys/dev/usb

Nick Hibma n_hibma at FreeBSD.org
Thu Oct 30 01:32:19 PDT 2008


Author: n_hibma
Date: Thu Oct 30 08:32:18 2008
New Revision: 184466
URL: http://svn.freebsd.org/changeset/base/184466

Log:
  We need to print out the device info ourselves on FBSD 6.
  
  Submitted by:	Thomas Nystrom

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

Modified: head/sys/dev/usb/u3g.c
==============================================================================
--- head/sys/dev/usb/u3g.c	Thu Oct 30 08:17:27 2008	(r184465)
+++ head/sys/dev/usb/u3g.c	Thu Oct 30 08:32:18 2008	(r184466)
@@ -227,6 +227,13 @@ u3g_attach(device_t self)
 	usb_config_descriptor_t *cd;
 	char devnamefmt[32];
 
+#if __FreeBSD_version < 700000
+	char *devinfo = malloc(1024, M_USBDEV, M_WAITOK);
+	usbd_devinfo(dev, 0, devinfo);
+	device_printf(self, "%s\n", devinfo);
+	free(devinfo, M_USBDEV);
+#endif
+
 	/* get the config descriptor */
 	cd = usbd_get_config_descriptor(dev);
 	if (cd == NULL) {


More information about the svn-src-all mailing list