public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [i-g-t PATCH] tests: prefix IGT kernel log messages with [IGT]
@ 2016-10-14  9:56 Jani Nikula
  2016-10-14 10:13 ` Chris Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Jani Nikula @ 2016-10-14  9:56 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

Make the IGT logging stand out better and easier to grep.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 lib/igt_core.c   | 6 +++---
 tests/drm_lib.sh | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 43db4684cab0..9cd5f98d2014 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -734,7 +734,7 @@ out:
 		exit(ret == -1 ? 0 : IGT_EXIT_INVALID);
 
 	if (!list_subtests) {
-		kmsg(KERN_INFO "%s: executing\n", command_str);
+		kmsg(KERN_INFO "[IGT] %s: executing\n", command_str);
 		print_version();
 
 		oom_adjust_for_doom();
@@ -860,7 +860,7 @@ bool __igt_run_subtest(const char *subtest_name)
 		return false;
 	}
 
-	kmsg(KERN_INFO "%s: starting subtest %s\n", command_str, subtest_name);
+	kmsg(KERN_INFO "[IGT] %s: starting subtest %s\n", command_str, subtest_name);
 	igt_debug("Starting subtest: %s\n", subtest_name);
 
 	_igt_log_buffer_reset();
@@ -1343,7 +1343,7 @@ void igt_exit(void)
 	}
 
 	if (command_str)
-		kmsg(KERN_INFO "%s: exiting, ret=%d\n",
+		kmsg(KERN_INFO "[IGT] %s: exiting, ret=%d\n",
 		     command_str, igt_exitcode);
 	igt_debug("Exiting with status code %d\n", igt_exitcode);
 
diff --git a/tests/drm_lib.sh b/tests/drm_lib.sh
index 113da4c7d645..1abc1580b96a 100755
--- a/tests/drm_lib.sh
+++ b/tests/drm_lib.sh
@@ -20,12 +20,12 @@ kmsg() {
 
 finish() {
 	exitcode=$?
-	kmsg "$KERN_INFO$NAME: exiting, ret=$exitcode"
+	kmsg "${KERN_INFO}[IGT] $NAME: exiting, ret=$exitcode"
 	exit $exitcode
 }
 trap finish EXIT
 
-kmsg "$KERN_INFO$NAME: executing"
+kmsg "${KERN_INFO}[IGT] $NAME: executing"
 
 skip() {
 	echo "$@"
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-14 10:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14  9:56 [i-g-t PATCH] tests: prefix IGT kernel log messages with [IGT] Jani Nikula
2016-10-14 10:13 ` Chris Wilson
2016-10-14 10:20   ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox