Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FlightOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Luntzer
FlightOS
Commits
fd656418
Commit
fd656418
authored
Jan 31, 2017
by
Armin Luntzer
Browse files
Options
Downloads
Patches
Plain Diff
add config option KERNEL_PRINTK to disable printing completely
parent
fb8b3888
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/kernel/printk.h
+4
-0
4 additions, 0 deletions
include/kernel/printk.h
kernel/Kconfig
+15
-8
15 additions, 8 deletions
kernel/Kconfig
kernel/Makefile
+1
-1
1 addition, 1 deletion
kernel/Makefile
with
20 additions
and
9 deletions
include/kernel/printk.h
+
4
−
0
View file @
fd656418
...
...
@@ -7,6 +7,10 @@
#include
<kernel/kernel_levels.h>
#ifdef CONFIG_KERNEL_PRINTK
int
printk
(
const
char
*
fmt
,
...);
#else
#define printk(fmt, ...)
#endif
#endif
/* _KERNEL_KERNEL_LEVELS_H_ */
This diff is collapsed.
Click to expand it.
kernel/Kconfig
+
15
−
8
View file @
fd656418
config KERNEL_PRINTK
bool "Enable printing in kernel"
default y
config KERNEL_LEVEL
int "Kernel debug level"
default "7"
range 0 8
depends on KERNEL_PRINTK
help
Limit the kernel's debug message level:
0: emergency
1: alerts
2: critical conditions
3: error conditions
4: warnings
5: notices
6: informational
7: debug
1: emergency
2: alerts
3: critical conditions
4: error conditions
5: warnings
6: notices
7: informational
8: debug
This diff is collapsed.
Click to expand it.
kernel/Makefile
+
1
−
1
View file @
fd656418
obj-y
+=
ksym.o
obj-
y
+=
printk.o
obj-
$(CONFIG_KERNEL_PRINTK)
+=
printk.o
obj-y
+=
bitmap.o
obj-y
+=
module.o
obj-m
+=
testmodule.o
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment