diff options
-rw-r--r-- | Documentation/kernel-parameters.txt | 3 | ||||
-rw-r--r-- | kernel/printk.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 27e0488d54d2..106efe1e2bab 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -973,6 +973,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
973 | ignore_loglevel [KNL] | 973 | ignore_loglevel [KNL] |
974 | Ignore loglevel setting - this will print /all/ | 974 | Ignore loglevel setting - this will print /all/ |
975 | kernel messages to the console. Useful for debugging. | 975 | kernel messages to the console. Useful for debugging. |
976 | We also add it as printk module parameter, so users | ||
977 | could change it dynamically, usually by | ||
978 | /sys/module/printk/parameters/ignore_loglevel. | ||
976 | 979 | ||
977 | ihash_entries= [KNL] | 980 | ihash_entries= [KNL] |
978 | Set number of hash buckets for inode cache. | 981 | Set number of hash buckets for inode cache. |
diff --git a/kernel/printk.c b/kernel/printk.c index b7da18391c38..e62f949ec140 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
@@ -532,6 +532,9 @@ static int __init ignore_loglevel_setup(char *str) | |||
532 | } | 532 | } |
533 | 533 | ||
534 | early_param("ignore_loglevel", ignore_loglevel_setup); | 534 | early_param("ignore_loglevel", ignore_loglevel_setup); |
535 | module_param_named(ignore_loglevel, ignore_loglevel, bool, S_IRUGO | S_IWUSR); | ||
536 | MODULE_PARM_DESC(ignore_loglevel, "ignore loglevel setting, to" | ||
537 | "print all kernel messages to the console."); | ||
535 | 538 | ||
536 | /* | 539 | /* |
537 | * Write out chars from start to end - 1 inclusive | 540 | * Write out chars from start to end - 1 inclusive |