From ce17a23ab3a1fe6e809f1cc898d278004339fc5b Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Thu, 22 Nov 2018 13:27:19 +0800 Subject: [PATCH] trace: increase trace pos for each event position for trace->pos is not updated, make error trace only show the newest one. Now update the pos to make all error trace can be seen. Signed-off-by: Pan Xiuli --- src/lib/trace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/trace.c b/src/lib/trace.c index fff53fba2..6eca95670 100644 --- a/src/lib/trace.c +++ b/src/lib/trace.c @@ -90,6 +90,7 @@ static void mtrace_event(const char *data, uint32_t length) t[trace->pos + i] = data[i]; dcache_writeback_region((void *)&t[trace->pos], i); + trace->pos += length; /* if there was more data than space available, wrap back */ if (length > available) {