Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42965
b: refs/heads/master
c: 7929082
h: refs/heads/master
i:
  42963: 82dbd04
v: v3
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Dec 7, 2006
1 parent 0483688 commit fd150b6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70e4506765602cca047cfa31933836e354c61a63
refs/heads/master: 792908225064b1d841a8990b9d1d1cfc4e0e5bb2
4 changes: 4 additions & 0 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,10 @@ and is between 256 and 4096 characters. It is defined in the file
idle= [HW]
Format: idle=poll or idle=halt

ignore_loglevel [KNL]
Ignore loglevel setting - this will print /all/
kernel messages to the console. Useful for debugging.

ihash_entries= [KNL]
Set number of hash buckets for inode cache.

Expand Down
14 changes: 13 additions & 1 deletion trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fd150b6

Please sign in to comment.