From 20eaac12a517074806a249fd85baec91d92ac1ef Mon Sep 17 00:00:00 2001 From: thompsa Date: Wed, 21 Apr 2010 23:03:26 +0000 Subject: 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 --- sys/dev/usb/usb_device.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index f0106ec..2f3a402 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -2427,6 +2427,7 @@ usb_notify_addq(const char *type, struct usb_device *udev) "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 usb_device *udev) 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 usb_device *udev) "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 usb_device *udev) 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, -- cgit v1.1