From d8bf7e17cb5b4b734071563f330a20e41cc6acc4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 5 Jan 2015 14:07:31 +0000 Subject: [PATCH] lib/core: Show the exitcode in kmsg as well This provides symmetry with logging the start of the test via kmsg. Signed-off-by: Chris Wilson --- lib/igt_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/igt_core.c b/lib/igt_core.c index 08e0c47f..3c035451 100644 --- a/lib/igt_core.c +++ b/lib/igt_core.c @@ -943,6 +943,8 @@ void igt_exit(void) if (igt_only_list_subtests()) exit(IGT_EXIT_SUCCESS); + kmsg(KMSG_INFO "%s: exiting, ret=%d\n", command_str, igt_exitcode); + if (!test_with_subtests) exit(igt_exitcode);