Skip to content

Commit

Permalink
Merge pull request thesofproject#607 from xiulipan/pr/etracefix
Browse files Browse the repository at this point in the history
trace: increase trace pos for each event
  • Loading branch information
lgirdwood committed Nov 22, 2018
2 parents 7a79343 + ce17a23 commit ace76bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ace76bc

Please sign in to comment.