From b3f7a72c276a4b7e9b90f04d7b492c15a8f21a83 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 28 Aug 2019 09:59:49 +0200 Subject: [PATCH] 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. --- src/trace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/trace.c b/src/trace.c index e8de89bac..8d68b6642 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("] ");