Instead of having to edit include/xen/lib.h for making debugtrace
available make it configurable via Kconfig.
Default is off, it is available only in expert mode or in debug builds.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
If unsure, say N here.
+config DEBUG_TRACE
+ bool "Debug trace support"
+ ---help---
+ Debug trace enables to record debug trace messages which are printed
+ either directly to the console or are printed to console in case of
+ a system crash.
+
endif # DEBUG || EXPERT
endmenu
* **************************************************************
*/
-#ifdef DEBUG_TRACE_DUMP
+#ifdef CONFIG_DEBUG_TRACE
/* Send output direct to console, or buffer it? */
static volatile int debugtrace_send_to_console;
*/
int cmdline_strcmp(const char *frag, const char *name);
-/*#define DEBUG_TRACE_DUMP*/
-#ifdef DEBUG_TRACE_DUMP
+#ifdef CONFIG_DEBUG_TRACE
extern void debugtrace_dump(void);
extern void debugtrace_printk(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));