Commit 875ec96f authored by Robert Schmidt's avatar Robert Schmidt

When logging function names, align to 32 characters

parent ea1aa382
...@@ -604,12 +604,13 @@ static inline int log_header(log_component_t *c, ...@@ -604,12 +604,13 @@ static inline int log_header(log_component_t *c,
return snprintf(log_buffer, return snprintf(log_buffer,
buffsize, buffsize,
"%s%s%s%-8s%s%s%s", "%s%s%s%-8s%s%-*s%s",
flag & FLAG_NOCOLOR ? "" : log_level_highlight_start[level], flag & FLAG_NOCOLOR ? "" : log_level_highlight_start[level],
timeString, timeString,
threadIdString, threadIdString,
c->headerName, c->headerName,
g_log->level2string[level], // will print space if no level selected g_log->level2string[level], // will print space if no level selected
l[0] == 0 ? 0 : 32,
l, l,
threadname); threadname);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment