svn commit: r310283 - stable/9/sys/dev/usb

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Dec 19 18:32:28 UTC 2016


Author: trasz
Date: Mon Dec 19 18:32:26 2016
New Revision: 310283
URL: https://svnweb.freebsd.org/changeset/base/310283

Log:
  MFC r307902:
  
  Make the USB attach strings in dmesg include product name.

Modified:
  stable/9/sys/dev/usb/usb_device.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/usb/usb_device.c
==============================================================================
--- stable/9/sys/dev/usb/usb_device.c	Mon Dec 19 18:31:22 2016	(r310282)
+++ stable/9/sys/dev/usb/usb_device.c	Mon Dec 19 18:32:26 2016	(r310283)
@@ -1904,8 +1904,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
 
@@ -2111,8 +2111,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-9 mailing list