summaryrefslogtreecommitdiff
path: root/lib/igt_core.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-24 08:30:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-06-28 10:06:31 +0100
commit362da34efcafc21bc1d6117d54cf85dd1edb30c7 (patch)
tree2dad81487ab8da321694f595187e58b09564a9fd /lib/igt_core.c
parente1c3cde5b00ad003cad99abc1a507878e854e3f7 (diff)
lib: Suppress kmsg on exit for unknown programmes
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_core.c')
-rw-r--r--lib/igt_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 92a875c6..801f02f8 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1169,7 +1169,9 @@ void igt_exit(void)
igt_exitcode = IGT_EXIT_SKIP;
}
- kmsg(KERN_INFO "%s: exiting, ret=%d\n", command_str, igt_exitcode);
+ if (command_str)
+ kmsg(KERN_INFO "%s: exiting, ret=%d\n",
+ command_str, igt_exitcode);
igt_debug("Exiting with status code %d\n", igt_exitcode);
for (int c = 0; c < num_test_children; c++)