summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-28 08:58:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-30 12:04:46 +0100
commitde1e877be5fe9ac83477a8ca416708f3d078b731 (patch)
tree988e7769f8504e5ca174175459fc7a0426346cad
parent9b500dbf6b0b3a68b1de90888c11a873202c98cd (diff)
core: Add all kernel log levels
And notice that INFO is 6 not 5. This is because I had intended to use KERN_NOTICE anyway... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--lib/igt_core.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index f4761ca6b..7f14b17ab 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -227,7 +227,14 @@ enum {
__attribute__((format(printf, 1, 2)))
static void kmsg(const char *format, ...)
-#define KERN_INFO "<5>"
+#define KERN_EMER "<0>"
+#define KERN_ALERT "<1>"
+#define KERN_CRIT "<2>"
+#define KERN_ERR "<3>"
+#define KERN_WARNING "<4>"
+#define KERN_NOTICE "<5>"
+#define KERN_INFO "<6>"
+#define KERN_DEBUG "<7>"
{
va_list ap;
FILE *file;