diff options
author | trasz <trasz@FreeBSD.org> | 2016-12-19 18:27:22 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-12-19 18:27:22 +0000 |
commit | 7aced6402d41c8b04878b1700b3617b5917668fe (patch) | |
tree | dd4ca8e76ecb6ce65a4f36c2083011bea6b3e198 /sys/dev/usb | |
parent | 11a3452fd3e8a7777385367aca51d545a227218a (diff) | |
download | FreeBSD-src-7aced6402d41c8b04878b1700b3617b5917668fe.zip FreeBSD-src-7aced6402d41c8b04878b1700b3617b5917668fe.tar.gz |
MFC r307902:
Make the USB attach strings in dmesg include product name.
MFC after: 1 month
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/usb_device.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index 52ebf60..cc5bf36 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -1941,8 +1941,8 @@ config_done: udev->ugen_symlink = usb_alloc_symlink(udev->ugen_name); /* Announce device */ - printf("%s: <%s> at %s\n", udev->ugen_name, - usb_get_manufacturer(udev), + printf("%s: <%s %s> at %s\n", udev->ugen_name, + usb_get_manufacturer(udev), usb_get_product(udev), device_get_nameunit(udev->bus->bdev)); #endif @@ -2148,8 +2148,9 @@ usb_free_device(struct usb_device *udev, uint8_t flag) #if USB_HAVE_UGEN if (!rebooting) { - printf("%s: <%s> at %s (disconnected)\n", udev->ugen_name, - usb_get_manufacturer(udev), device_get_nameunit(bus->bdev)); + printf("%s: <%s %s> at %s (disconnected)\n", udev->ugen_name, + usb_get_manufacturer(udev), usb_get_product(udev), + device_get_nameunit(bus->bdev)); } /* Destroy UGEN symlink, if any */ |