Linus Torvalds writes: (Summary)
So what we could perhaps do is:
So what we could perhaps do is:
- make console_verbose() actually reset things to at least LOGLEVEL_DEBUG - make console_verbose() actually reset things to at least LOGLEVEL_DEBUG - make sure the *default* loglevel be LOGLEVEL_WARNING - make sure the *default* loglevel be LOGLEVEL_WARNING - now you can use pr_debug() in the oops code to print messages to the log, but they won't be printed to the screen.
the log, but they won't be printed to the screen.
And people who really want everything can still set a loglevel that is much higher, because "console_verbose" would only do that "at least" thing.
thing.
That would seem like the best of both worlds, no?
That would seem like the best of both worlds, no?
Linus
Linus
Linus
So what we could perhaps do is:
- make console_verbose() actually reset things to at least LOGLEVEL_DEBUG - make console_verbose() actually reset things to at least LOGLEVEL_DEBUG - make sure the *default* loglevel be LOGLEVEL_WARNING - make sure the *default* loglevel be LOGLEVEL_WARNING - now you can use pr_debug() in the oops code to print messages to the log, but they won't be printed to the screen.
the log, but they won't be printed to the screen.
And people who really want everything can still set a loglevel that is much higher, because "console_verbose" would only do that "at least" thing.
thing.
That would seem like the best of both worlds, no?
That would seem like the best of both worlds, no?
Linus
Linus
Linus