Page MenuHomeFreeBSD

Switch run(4) to use a bitmap for debug printf()s
ClosedPublic

Authored by gavin on Dec 3 2016, 11:49 PM.

Details

Summary

Swithc if_run.c to use a bitmap for debug levels rather than arbitrary values. This more closely matches other wifi drivers in the tree. The bitmap levels have been based closely on other drivers (primarily [u]rtwn(4)) in the hope that one day these can be unified into a shared wifi-debug framework.

This is the first step of several pieces of work I'm planning on doing with the run(4) driver. I may well adjust and refine some of the debug levels at a later date.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

gavin updated this revision to Diff 22692.Dec 3 2016, 11:49 PM
gavin retitled this revision from to Switch run(4) to use a bitmap for debug printf()s.
gavin updated this object.
gavin edited the test plan for this revision. (Show Details)
gavin added reviewers: adrian, s3erios_gmail.com.
gavin set the repository for this revision to rS FreeBSD src repository.
s3erios_gmail.com edited edge metadata.
This revision is now accepted and ready to land.Dec 4 2016, 12:17 AM
adrian accepted this revision.Dec 4 2016, 12:46 AM
adrian edited edge metadata.
This revision was automatically updated to reflect the committed changes.