From 9aa53c183c5aea55d2727d095b9ba2bf806e4af9 Mon Sep 17 00:00:00 2001 From: n_hibma Date: Thu, 30 Oct 2008 08:32:18 +0000 Subject: We need to print out the device info ourselves on FBSD 6. Submitted by: Thomas Nystrom --- sys/dev/usb/u3g.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys') diff --git a/sys/dev/usb/u3g.c b/sys/dev/usb/u3g.c index 320e740..0d03570 100644 --- a/sys/dev/usb/u3g.c +++ b/sys/dev/usb/u3g.c @@ -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) { -- cgit v1.1