diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-12-16 15:18:20 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-01-16 11:11:10 +0000 |
commit | df11a0f4a83a78ca63e04ff915a77e33cf8422fe (patch) | |
tree | b5c9e9ff63f191608c511287263b2709d1024a23 /lib/igt_core.c | |
parent | 032f30cb38bb03562ee7fde19cd278b1d8ac31a9 (diff) |
lib: add a critical warning level
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_core.c')
-rw-r--r-- | lib/igt_core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c index a74fe092..1ead7835 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -1453,9 +1453,10 @@ void igt_skip_on_simulation(void) * between SUCESS and FAILURE. * * The log level can be set through the IGT_LOG_LEVEL environment variable with - * values "debug", "info", "warn" and "none". By default verbose debug message - * are disabled. "none" completely disables all output and is not recommended - * since crucial issues only reported at the IGT_LOG_WARN level are ignored. + * values "debug", "info", "warn", "critical" and "none". By default verbose + * debug message are disabled. "none" completely disables all output and is not + * recommended since crucial issues only reported at the IGT_LOG_WARN level are + * ignored. */ void igt_log(const char *domain, enum igt_log_level level, const char *format, ...) { @@ -1488,6 +1489,7 @@ void igt_vlog(const char *domain, enum igt_log_level level, const char *format, "DEBUG", "INFO", "WARNING", + "CRITICAL", "NONE" }; @@ -1514,7 +1516,7 @@ void igt_vlog(const char *domain, enum igt_log_level level, const char *format, return; } - if (level == IGT_LOG_WARN) { + if (level > IGT_LOG_WARN) { file = stderr; fflush(stdout); } |