Merge pull request #98 from akloniex/trace-improvements

logger: Add support for 4 parameters passed to log message.
This commit is contained in:
Liam Girdwood 2018-10-10 16:40:34 +01:00 committed by GitHub
commit 878d08831c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ static void print_entry_params(FILE *out_fd, struct dma_log dma_log,
fprintf(out_fd, entry.text, entry.params[0], entry.params[1],
entry.params[2]);
break;
case 4:
fprintf(out_fd, entry.text, entry.params[0], entry.params[1],
entry.params[2], entry.params[3]);
break;
}
fprintf(out_fd, "\n");
fflush(out_fd);