Page MenuHomeFreeBSD

lsdev device name section headers should be printed by dv_print callback.
ClosedPublic

Authored by tsoome on Nov 17 2016, 9:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 16, 3:14 AM
Unknown Object (File)
Sep 2 2025, 5:08 AM
Unknown Object (File)
Aug 13 2025, 4:40 AM
Unknown Object (File)
Jul 22 2025, 1:23 AM
Unknown Object (File)
Jul 7 2025, 12:30 PM
Unknown Object (File)
Jul 6 2025, 4:01 PM
Unknown Object (File)
Jun 27 2025, 11:12 PM
Unknown Object (File)
Jun 18 2025, 12:09 AM
Subscribers

Details

Summary

lsdev command does walk over devsw list, prints list element name and
will use dv_print() callback to print the device list.
Unfortunately this approach will add unneeded noise when there are no
particular devices detected.

To remove "empty" device section headers, the dv_print() callback
should print the header instead.

In addition, fixed dv_print callback for md module.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tsoome retitled this revision from to lsdev device name section headers should be printed by dv_print callback..
tsoome updated this object.
tsoome edited the test plan for this revision. (Show Details)
tsoome added reviewers: allanjude, imp.
imp edited edge metadata.
This revision is now accepted and ready to land.Nov 17 2016, 9:18 PM
This revision was automatically updated to reflect the committed changes.