mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
[PATCH] clean up kernel messages
Arrange for all kernel printks to be no-ops. Only available if CONFIG_EMBEDDED. This patch saves about 375k on my laptop config and nearly 100k on minimal configs. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
cd7619d6bf
commit
d59745ce3e
4 changed files with 43 additions and 6 deletions
11
init/Kconfig
11
init/Kconfig
|
|
@ -275,6 +275,17 @@ config KALLSYMS_EXTRA_PASS
|
|||
reported. KALLSYMS_EXTRA_PASS is only a temporary workaround while
|
||||
you wait for kallsyms to be fixed.
|
||||
|
||||
|
||||
config PRINTK
|
||||
default y
|
||||
bool "Enable support for printk" if EMBEDDED
|
||||
help
|
||||
This option enables normal printk support. Removing it
|
||||
eliminates most of the message strings from the kernel image
|
||||
and makes the kernel more or less silent. As this makes it
|
||||
very difficult to diagnose system problems, saying N here is
|
||||
strongly discouraged.
|
||||
|
||||
config BUG
|
||||
bool "BUG() support" if EMBEDDED
|
||||
default y
|
||||
|
|
|
|||
Loading…
Reference in a new issue