mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] add ignore_loglevel boot option
Sometimes the kernel prints something interesting while userspace bootup keeps messages turned off via loglevel. Enable the printing of /all/ kernel messages via the "ignore_loglevel" boot option. Off by default. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
70e4506765
commit
7929082250
2 changed files with 17 additions and 1 deletions
|
|
@ -333,13 +333,25 @@ static void __call_console_drivers(unsigned long start, unsigned long end)
|
|||
}
|
||||
}
|
||||
|
||||
static int __read_mostly ignore_loglevel;
|
||||
|
||||
int __init ignore_loglevel_setup(char *str)
|
||||
{
|
||||
ignore_loglevel = 1;
|
||||
printk(KERN_INFO "debug: ignoring loglevel setting.\n");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
__setup("ignore_loglevel", ignore_loglevel_setup);
|
||||
|
||||
/*
|
||||
* Write out chars from start to end - 1 inclusive
|
||||
*/
|
||||
static void _call_console_drivers(unsigned long start,
|
||||
unsigned long end, int msg_log_level)
|
||||
{
|
||||
if (msg_log_level < console_loglevel &&
|
||||
if ((msg_log_level < console_loglevel || ignore_loglevel) &&
|
||||
console_drivers && start != end) {
|
||||
if ((start & LOG_BUF_MASK) > (end & LOG_BUF_MASK)) {
|
||||
/* wrapped write */
|
||||
|
|
|
|||
Loading…
Reference in a new issue