xref: /linux-6.15/include/linux/kern_levels.h (revision e36202a8)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2314ba352SJoe Perches #ifndef __KERN_LEVELS_H__
3314ba352SJoe Perches #define __KERN_LEVELS_H__
4314ba352SJoe Perches 
504d2c8c8SJoe Perches #define KERN_SOH	"\001"		/* ASCII Start Of Header */
604d2c8c8SJoe Perches #define KERN_SOH_ASCII	'\001'
7314ba352SJoe Perches 
804d2c8c8SJoe Perches #define KERN_EMERG	KERN_SOH "0"	/* system is unusable */
904d2c8c8SJoe Perches #define KERN_ALERT	KERN_SOH "1"	/* action must be taken immediately */
1004d2c8c8SJoe Perches #define KERN_CRIT	KERN_SOH "2"	/* critical conditions */
1104d2c8c8SJoe Perches #define KERN_ERR	KERN_SOH "3"	/* error conditions */
1204d2c8c8SJoe Perches #define KERN_WARNING	KERN_SOH "4"	/* warning conditions */
1304d2c8c8SJoe Perches #define KERN_NOTICE	KERN_SOH "5"	/* normal but significant condition */
1404d2c8c8SJoe Perches #define KERN_INFO	KERN_SOH "6"	/* informational */
1504d2c8c8SJoe Perches #define KERN_DEBUG	KERN_SOH "7"	/* debug-level messages */
1604d2c8c8SJoe Perches 
17*e36202a8STetsuo Handa #define KERN_DEFAULT	""		/* the default kernel loglevel */
1804d2c8c8SJoe Perches 
19314ba352SJoe Perches /*
20314ba352SJoe Perches  * Annotation for a "continued" line of log printout (only done after a
21314ba352SJoe Perches  * line that had no enclosing \n). Only to be used by core/arch code
22314ba352SJoe Perches  * during early bootup (a continued line is not SMP-safe otherwise).
23314ba352SJoe Perches  */
244bcc595cSLinus Torvalds #define KERN_CONT	KERN_SOH "c"
25314ba352SJoe Perches 
26a39d4a85SJoe Perches /* integer equivalents of KERN_<LEVEL> */
27a39d4a85SJoe Perches #define LOGLEVEL_SCHED		-2	/* Deferred messages from sched code
28a39d4a85SJoe Perches 					 * are set to this special level */
29a39d4a85SJoe Perches #define LOGLEVEL_DEFAULT	-1	/* default (or last) loglevel */
30a39d4a85SJoe Perches #define LOGLEVEL_EMERG		0	/* system is unusable */
31a39d4a85SJoe Perches #define LOGLEVEL_ALERT		1	/* action must be taken immediately */
32a39d4a85SJoe Perches #define LOGLEVEL_CRIT		2	/* critical conditions */
33a39d4a85SJoe Perches #define LOGLEVEL_ERR		3	/* error conditions */
34a39d4a85SJoe Perches #define LOGLEVEL_WARNING	4	/* warning conditions */
35a39d4a85SJoe Perches #define LOGLEVEL_NOTICE		5	/* normal but significant condition */
36a39d4a85SJoe Perches #define LOGLEVEL_INFO		6	/* informational */
37a39d4a85SJoe Perches #define LOGLEVEL_DEBUG		7	/* debug-level messages */
38a39d4a85SJoe Perches 
39314ba352SJoe Perches #endif
40