From b8db5d60e0f19c46142f22f9dcbe4d7b6d166b9f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 6 Mar 2015 08:49:52 +0000 Subject: [PATCH] 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 Cc: Thomas Wood --- lib/igt_core.c | 6 ++---- 1 file 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)))