When logging function names, align to 32 characters
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user