Merge pull request #607 from xiulipan/pr/etracefix

trace: increase trace pos for each event
This commit is contained in:
Liam Girdwood 2018-11-22 11:05:37 +00:00 committed by GitHub
commit ace76bc6ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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) {