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>
This commit is contained in:
Chris Wilson 2015-03-06 08:49:52 +00:00
parent e23accf437
commit b8db5d60e0

View File

@ -284,8 +284,7 @@ static void _igt_log_buffer_dump(void)
} }
pthread_mutex_lock(&log_buffer_mutex); pthread_mutex_lock(&log_buffer_mutex);
fprintf(stderr, "**** DEBUG ****\n");
fprintf(stderr, "Log Start\n");
i = log_buffer.start; i = log_buffer.start;
do { do {
@ -297,9 +296,8 @@ static void _igt_log_buffer_dump(void)
/* reset the buffer */ /* reset the buffer */
log_buffer.start = log_buffer.end = 0; log_buffer.start = log_buffer.end = 0;
fprintf(stderr, "**** END ****\n");
pthread_mutex_unlock(&log_buffer_mutex); pthread_mutex_unlock(&log_buffer_mutex);
fprintf(stderr, "Log End\n");
} }
__attribute__((format(printf, 1, 2))) __attribute__((format(printf, 1, 2)))