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)
Fri, Dec 26, 7:13 AM
Unknown Object (File)
Nov 21 2025, 4:15 AM
Unknown Object (File)
Nov 19 2025, 12:13 AM
Unknown Object (File)
Nov 18 2025, 6:19 AM
Unknown Object (File)
Nov 17 2025, 10:49 PM
Unknown Object (File)
Nov 17 2025, 4:54 PM
Unknown Object (File)
Nov 5 2025, 1:25 AM
Unknown Object (File)
Nov 4 2025, 9:47 PM
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.