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.h | |
parent | 032f30cb38bb03562ee7fde19cd278b1d8ac31a9 (diff) |
lib: add a critical warning level
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h index 5c5ee255..f184d75d 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -520,6 +520,7 @@ enum igt_log_level { IGT_LOG_DEBUG, IGT_LOG_INFO, IGT_LOG_WARN, + IGT_LOG_CRITICAL, IGT_LOG_NONE, }; __attribute__((format(printf, 3, 4))) @@ -550,6 +551,15 @@ void igt_vlog(const char *domain, enum igt_log_level level, const char *format, * Wrapper for igt_log() for message at the IGT_LOG_WARN level. */ #define igt_warn(f...) igt_log(IGT_LOG_DOMAIN, IGT_LOG_WARN, f) + +/** + * igt_critical: + * @...: format string and optional arguments + * + * Wrapper for igt_log() for message at the IGT_LOG_CRITICAL level. + */ +#define igt_critical(f...) igt_log(IGT_LOG_DOMAIN, IGT_LOG_CRITICAL, f) + extern enum igt_log_level igt_log_level; /** |