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, Mar 21, 6:02 AM
Unknown Object (File)
Thu, Mar 20, 4:05 PM
Unknown Object (File)
Sun, Mar 16, 4:24 PM
Unknown Object (File)
Feb 9 2025, 1:35 AM
Unknown Object (File)
Feb 8 2025, 2:37 AM
Unknown Object (File)
Jan 24 2025, 1:59 AM
Unknown Object (File)
Jan 22 2025, 12:22 PM
Unknown Object (File)
Jan 22 2025, 10:16 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.