summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-03-06 08:49:52 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-03-06 15:43:03 +0000
commitb8db5d60e0f19c46142f22f9dcbe4d7b6d166b9f (patch)
tree95d5ec4554e30460b12f1dd4c637c0d07e3c2159 /lib
parente23accf43753055430064fa02efe7d33ab11564f (diff)
lib/core: Make the start of the debug output more clear
I missed the quiet "Log start" between the test failure and the debug output (and so was very confused by the repetition). You have to shout at me! v2: Thomas suggested I make the end of the logging clear as well. Since I completely missed that there was a end marker, he must be right! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 8f75e48b..c217a016 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -284,8 +284,7 @@ static void _igt_log_buffer_dump(void)
}
pthread_mutex_lock(&log_buffer_mutex);
-
- fprintf(stderr, "Log Start\n");
+ fprintf(stderr, "**** DEBUG ****\n");
i = log_buffer.start;
do {
@@ -297,9 +296,8 @@ static void _igt_log_buffer_dump(void)
/* reset the buffer */
log_buffer.start = log_buffer.end = 0;
+ fprintf(stderr, "**** END ****\n");
pthread_mutex_unlock(&log_buffer_mutex);
-
- fprintf(stderr, "Log End\n");
}
__attribute__((format(printf, 1, 2)))