diff options
| -rw-r--r-- | include/linux/printk.h | 6 | ||||
| -rw-r--r-- | lib/Kconfig.debug | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index 6d7e800affd8..18602bb3eca8 100644 --- a/include/linux/printk.h +++ b/include/linux/printk.h | |||
| @@ -50,15 +50,15 @@ static inline const char *printk_skip_headers(const char *buffer) | |||
| 50 | /* We show everything that is MORE important than this.. */ | 50 | /* We show everything that is MORE important than this.. */ |
| 51 | #define CONSOLE_LOGLEVEL_SILENT 0 /* Mum's the word */ | 51 | #define CONSOLE_LOGLEVEL_SILENT 0 /* Mum's the word */ |
| 52 | #define CONSOLE_LOGLEVEL_MIN 1 /* Minimum loglevel we let people use */ | 52 | #define CONSOLE_LOGLEVEL_MIN 1 /* Minimum loglevel we let people use */ |
| 53 | #define CONSOLE_LOGLEVEL_QUIET 4 /* Shhh ..., when booted with "quiet" */ | ||
| 54 | #define CONSOLE_LOGLEVEL_DEBUG 10 /* issue debug messages */ | 53 | #define CONSOLE_LOGLEVEL_DEBUG 10 /* issue debug messages */ |
| 55 | #define CONSOLE_LOGLEVEL_MOTORMOUTH 15 /* You can't shut this one up */ | 54 | #define CONSOLE_LOGLEVEL_MOTORMOUTH 15 /* You can't shut this one up */ |
| 56 | 55 | ||
| 57 | /* | 56 | /* |
| 58 | * Default used to be hard-coded at 7, we're now allowing it to be set from | 57 | * Default used to be hard-coded at 7, quiet used to be hardcoded at 4, |
| 59 | * kernel config. | 58 | * we're now allowing both to be set from kernel config. |
| 60 | */ | 59 | */ |
| 61 | #define CONSOLE_LOGLEVEL_DEFAULT CONFIG_CONSOLE_LOGLEVEL_DEFAULT | 60 | #define CONSOLE_LOGLEVEL_DEFAULT CONFIG_CONSOLE_LOGLEVEL_DEFAULT |
| 61 | #define CONSOLE_LOGLEVEL_QUIET CONFIG_CONSOLE_LOGLEVEL_QUIET | ||
| 62 | 62 | ||
| 63 | extern int console_printk[]; | 63 | extern int console_printk[]; |
| 64 | 64 | ||
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 76555479ae36..a7ef03009e9e 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -30,6 +30,17 @@ config CONSOLE_LOGLEVEL_DEFAULT | |||
| 30 | usage in the kernel. That is controlled by the MESSAGE_LOGLEVEL_DEFAULT | 30 | usage in the kernel. That is controlled by the MESSAGE_LOGLEVEL_DEFAULT |
| 31 | option. | 31 | option. |
| 32 | 32 | ||
| 33 | config CONSOLE_LOGLEVEL_QUIET | ||
| 34 | int "quiet console loglevel (1-15)" | ||
| 35 | range 1 15 | ||
| 36 | default "4" | ||
| 37 | help | ||
| 38 | loglevel to use when "quiet" is passed on the kernel commandline. | ||
| 39 | |||
| 40 | When "quiet" is passed on the kernel commandline this loglevel | ||
| 41 | will be used as the loglevel. IOW passing "quiet" will be the | ||
| 42 | equivalent of passing "loglevel=<CONSOLE_LOGLEVEL_QUIET>" | ||
| 43 | |||
| 33 | config MESSAGE_LOGLEVEL_DEFAULT | 44 | config MESSAGE_LOGLEVEL_DEFAULT |
| 34 | int "Default message log level (1-7)" | 45 | int "Default message log level (1-7)" |
| 35 | range 1 7 | 46 | range 1 7 |
