Debugging facility improvements.
[coreboot.git] / src / Kconfig
index a61efe1a8e7025d0b88d1fb16b05975b12f136df..b25a19e044d90b3d5602c5d0bf917a4c5c90f1a0 100644 (file)
@@ -502,10 +502,13 @@ config DEBUG_RAM_SETUP
 config HAVE_DEBUG_CAR
        def_bool n
 
+# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
+# printk(BIOS_DEBUG, ...) calls.
 config DEBUG_CAR
        bool "Output verbose Cache-as-RAM debug messages"
        default n
-       depends on HAVE_DEBUG_CAR
+       depends on HAVE_DEBUG_CAR && \
+                  (DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8)
        help
          This option enables additional CAR related debug messages.
 
@@ -553,10 +556,26 @@ config DEBUG_SMM_RELOCATION
 
          If unsure, say N.
 
+# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
+# printk(BIOS_DEBUG, ...) calls.
+config DEBUG_MALLOC
+       bool "Output verbose malloc debug messages"
+       default n
+       depends on DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
+       help
+         This option enables additional malloc related debug messages.
+
+         Note: This option will increase the size of the coreboot image.
+
+         If unsure, say N.
+
+# Only visible if debug level is DEBUG (7) or SPEW (8) as it does additional
+# printk(BIOS_DEBUG, ...) calls.
 config REALMODE_DEBUG
        bool "Enable debug messages for option ROM execution"
        default n
-       depends on PCI_OPTION_ROM_RUN_REALMODE
+       depends on PCI_OPTION_ROM_RUN_REALMODE && \
+                  (DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8)
        help
          This option enables additional x86emu related debug messages.