We need to print out the device info ourselves on FBSD 6.
Submitted by: Thomas Nystrom
This commit is contained in:
parent
72963ee0de
commit
2726c918a7
@ -227,6 +227,13 @@ u3g_attach(device_t self)
|
|||||||
usb_config_descriptor_t *cd;
|
usb_config_descriptor_t *cd;
|
||||||
char devnamefmt[32];
|
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 */
|
/* get the config descriptor */
|
||||||
cd = usbd_get_config_descriptor(dev);
|
cd = usbd_get_config_descriptor(dev);
|
||||||
if (cd == NULL) {
|
if (cd == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user