MINOR: trace: extend the source location to 13 chars

With 4-digit line numbers, this allows to emit up to 6 chars of file
name before extension, instead of 3 previously.
This commit is contained in:
Willy Tarreau 2019-08-28 09:59:49 +02:00
parent 3da0026d25
commit b3f7a72c27

View File

@ -178,9 +178,9 @@ void __trace(enum trace_level level, uint64_t mask, struct trace_source *src, co
*/
line[0] = ist("[");
line[1] = where;
if (line[1].len > 10) {
line[1].ptr += (line[1].len - 10);
line[1].len = 10;
if (line[1].len > 13) {
line[1].ptr += (line[1].len - 13);
line[1].len = 13;
}
line[2] = ist("] ");