mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
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:
parent
3da0026d25
commit
b3f7a72c27
@ -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("] ");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user