summaryrefslogtreecommitdiffstats
path: root/src/config/console.h
diff options
context:
space:
mode:
authorMichael Brown2012-03-26 20:50:50 +0200
committerMichael Brown2012-03-26 20:58:14 +0200
commit24b7296319666709ac49bedb47df18d0bc37704e (patch)
treed2c5847e0d8844ea50b7a835fe7d21fd5f556a4d /src/config/console.h
parent[console] Exclude text-based UI output from logfile-based consoles (diff)
downloadipxe-24b7296319666709ac49bedb47df18d0bc37704e.tar.gz
ipxe-24b7296319666709ac49bedb47df18d0bc37704e.tar.xz
ipxe-24b7296319666709ac49bedb47df18d0bc37704e.zip
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/config/console.h')
-rw-r--r--src/config/console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/console.h b/src/config/console.h
index 0692c2f5..e7a190aa 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 <config/local/console.h>
#endif /* CONFIG_CONSOLE_H */