Date: Thu, 30 Oct 2008 08:32:18 +0000 (UTC) From: Nick Hibma <n_hibma@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184466 - head/sys/dev/usb Message-ID: <200810300832.m9U8WInO045752@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810300832.m9U8WInO045752>