From: Willy Tarreau Date: Wed, 28 Aug 2019 07:59:49 +0000 (+0200) Subject: MINOR: trace: extend the source location to 13 chars X-Git-Tag: v2.1-dev2~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f7a72c276a4b7e9b90f04d7b492c15a8f21a83;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/trace.c b/src/trace.c index e8de89bac5..8d68b66422 100644 --- a/src/trace.c +++ b/src/trace.c @@ -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("] ");