diff options
Diffstat (limited to 'include/linux/printk.h')
| -rw-r--r-- | include/linux/printk.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h index 6d7e800affd8..cf3eccfe1543 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 | ||
| @@ -148,9 +148,13 @@ void early_printk(const char *s, ...) { } | |||
| 148 | #ifdef CONFIG_PRINTK_NMI | 148 | #ifdef CONFIG_PRINTK_NMI |
| 149 | extern void printk_nmi_enter(void); | 149 | extern void printk_nmi_enter(void); |
| 150 | extern void printk_nmi_exit(void); | 150 | extern void printk_nmi_exit(void); |
| 151 | extern void printk_nmi_direct_enter(void); | ||
| 152 | extern void printk_nmi_direct_exit(void); | ||
| 151 | #else | 153 | #else |
| 152 | static inline void printk_nmi_enter(void) { } | 154 | static inline void printk_nmi_enter(void) { } |
| 153 | static inline void printk_nmi_exit(void) { } | 155 | static inline void printk_nmi_exit(void) { } |
| 156 | static inline void printk_nmi_direct_enter(void) { } | ||
| 157 | static inline void printk_nmi_direct_exit(void) { } | ||
| 154 | #endif /* PRINTK_NMI */ | 158 | #endif /* PRINTK_NMI */ |
| 155 | 159 | ||
| 156 | #ifdef CONFIG_PRINTK | 160 | #ifdef CONFIG_PRINTK |
