-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applespi: Replace #ifdef based debug logging enabling with module par…
…ameter. The new 'debug' parameter is a bitset and can be changed at runtime to control what to log. This way logging can be enabled dynamically without needing to recompile. Note that we aren't using dynamic-debug because it has two issues: 1) we can't enable it at a function or line level on the kernel command-line 2) the expressions to enable specific debug logging are brittle and are easily/often broken during refactoring or other code movements. Using our own debug parameter solves both these issues.
- Loading branch information
1 parent
b16862f
commit ecae013
Showing
2 changed files
with
112 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters