Make the USB attach strings in dmesg include product name.
Note to self: MFC this to 9 and 8. Reviewed by: hselasky@, imp@ MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D8259
This commit is contained in:
parent
4e7f755377
commit
88f9a4ff75
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307902
@ -1938,8 +1938,8 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user