diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2008-10-30 08:32:18 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2008-10-30 08:32:18 +0000 |
commit | 9aa53c183c5aea55d2727d095b9ba2bf806e4af9 (patch) | |
tree | 35fcd242220a641448af6f72ae307f43e1c9634f /sys/dev/usb | |
parent | 44ed6d08339327fda6dbc63350b4acffd14a24f4 (diff) | |
download | FreeBSD-src-9aa53c183c5aea55d2727d095b9ba2bf806e4af9.zip FreeBSD-src-9aa53c183c5aea55d2727d095b9ba2bf806e4af9.tar.gz |
We need to print out the device info ourselves on FBSD 6.
Submitted by: Thomas Nystrom
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/u3g.c | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |