From 24b7296319666709ac49bedb47df18d0bc37704e Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 26 Mar 2012 19:50:50 +0100 Subject: [console] Add "log message" console usage and an internal syslog() call Provide an internal syslog() function (unrelated to the syslog console) which can be used to create log messages with specified priorities. The build-time constant LOG_LEVEL can be used to select the minimum required priority for log messages. Any messages that do not have a sufficient priority will be ignored (and will be optimised away at compile-time). The default LOG_LEVEL is LOG_NONE. Signed-off-by: Michael Brown --- src/config/console.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config') diff --git a/src/config/console.h b/src/config/console.h index 0692c2f5c..e7a190aa0 100644 --- a/src/config/console.h +++ b/src/config/console.h @@ -23,6 +23,8 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define KEYBOARD_MAP us +#define LOG_LEVEL LOG_NONE + #include #endif /* CONFIG_CONSOLE_H */ -- cgit v1.2.3-55-g7522