Merge pull request #97 from akloniex/fix-formatting

logger: Fix formatting of line number value.
This commit is contained in:
Liam Girdwood 2018-10-10 16:38:54 +01:00 committed by GitHub
commit 3e848fe2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ static void print_entry_params(FILE *out_fd, struct dma_log dma_log,
if (dt < 0 || dt > 1000.0 * 1000.0 * 1000.0)
dt = NAN;
fprintf(out_fd, "%s%5u %6u %8s %16.6f %16.6f %20s:%u\t",
fprintf(out_fd, "%s%5u %6u %8s %16.6f %16.6f %20s:%-4u\t",
entry.header.level == LOG_LEVEL_CRITICAL ? KRED : KNRM,
dma_log.header.core_id,
entry.header.level,