Page MenuHomeFreeBSD

Make the USB attach strings in dmesg include product name.
ClosedPublic

Authored by trasz on Oct 15 2016, 11:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 25, 5:32 AM
Unknown Object (File)
Thu, Mar 20, 4:04 PM
Unknown Object (File)
Mar 4 2025, 4:06 PM
Unknown Object (File)
Feb 22 2025, 12:07 AM
Unknown Object (File)
Feb 21 2025, 2:07 PM
Unknown Object (File)
Feb 13 2025, 8:57 PM
Unknown Object (File)
Feb 1 2025, 4:23 AM
Unknown Object (File)
Jan 24 2025, 3:16 AM
Subscribers

Details

Summary

Make the USB attach strings in dmesg include product name.

Diff Detail

Event Timeline

trasz retitled this revision from to Make the USB attach strings in dmesg include product name..
trasz updated this object.
trasz edited the test plan for this revision. (Show Details)

Looks good to my eye (I thought I'd done something similar to the USB stack before Hans took it over).

sys/dev/usb/usb_util.c
98 ↗(On Diff #21423)

Are you checking iManufacturer for 0 ?

Don't mess with device_set_usb_desc() for now.

sys/dev/usb/usb_util.c
98 ↗(On Diff #21423)

Well, usbd_req_get_string_any() already handles this, but I'll try to do this in a cleaner way. For now let's forget about this chunk.

hselasky edited edge metadata.

Looks good. Approved.

This revision is now accepted and ready to land.Oct 22 2016, 8:15 PM

Don't forget to MFC all the way back to 8-stable.

This revision was automatically updated to reflect the committed changes.