Author: thompsa Date: Wed Apr 21 23:03:26 2010 New Revision: 207027 URL: http://svn.freebsd.org/changeset/base/207027
Log: Also add the usb mode to the devd string as the usb controller can work in both host or device (gadget) modes. Suggested by: HPS Modified: head/sys/dev/usb/usb_device.c Modified: head/sys/dev/usb/usb_device.c ============================================================================== --- head/sys/dev/usb/usb_device.c Wed Apr 21 22:34:49 2010 (r207026) +++ head/sys/dev/usb/usb_device.c Wed Apr 21 23:03:26 2010 (r207027) @@ -2427,6 +2427,7 @@ usb_notify_addq(const char *type, struct "devsubclass=0x%02x " "sernum=\"%s\" " "release=0x%04x " + "mode=%s " "port=%u " "parent=%s\n", udev->ugen_name, @@ -2436,6 +2437,7 @@ usb_notify_addq(const char *type, struct udev->ddesc.bDeviceSubClass, udev->serial, UGETW(udev->ddesc.bcdDevice), + (udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", udev->port_no, udev->parent_hub != NULL ? udev->parent_hub->ugen_name : @@ -2461,6 +2463,7 @@ usb_notify_addq(const char *type, struct "devsubclass=0x%02x " "sernum=\"%s\" " "release=0x%04x " + "mode=%s " "interface=%d " "endpoints=%d " "intclass=0x%02x " @@ -2473,6 +2476,7 @@ usb_notify_addq(const char *type, struct udev->ddesc.bDeviceSubClass, udev->serial, UGETW(udev->ddesc.bcdDevice), + (udev->flags.usb_mode == USB_MODE_HOST) ? "host" : "device", iface->idesc->bInterfaceNumber, iface->idesc->bNumEndpoints, iface->idesc->bInterfaceClass, _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"