svn commit: r310277 - stable/11/sys/dev/usb
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Dec 19 17:05:26 UTC 2016
Author: trasz
Date: Mon Dec 19 17:05:24 2016
New Revision: 310277
URL: https://svnweb.freebsd.org/changeset/base/310277
Log:
MFC r307902:
Make the USB attach strings in dmesg include product name.
Modified:
stable/11/sys/dev/usb/usb_device.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/usb/usb_device.c
==============================================================================
--- stable/11/sys/dev/usb/usb_device.c Mon Dec 19 17:02:55 2016 (r310276)
+++ stable/11/sys/dev/usb/usb_device.c Mon Dec 19 17:05:24 2016 (r310277)
@@ -1938,8 +1938,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,
#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 */
More information about the svn-src-stable
mailing list