-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logging: add user-adjustable log levels ("err", "warn", "info")
The log_printf() function now takes an enum log_level parameter, and prints the message to the console if the supplied level is lower than or equal than the configured kernel log level (which can be set via the "log_level" manifest option). The default log level is "err". The msg_{err,warn,info} macros have been repurposed so that in kernel code they expand to log_printf() function calls; calls to these macros have been modified so that the format string starts with a sensible prefix; the trailing newline is added by log_printf(), thus it has been removed from the macro invocations. Some rprintf() and thread_log() calls have been converted to use the msg_{print,err,warn,info} macros.
- Loading branch information
1 parent
9caf262
commit f695ae1
Showing
126 changed files
with
809 additions
and
778 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
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
Oops, something went wrong.