]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: debug: make the complain() function print the prefix
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2026 15:49:39 +0000 (17:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit28a09c38ffb154d057ce11b062d220c05ca9b052
treefad43b1a5670ca7a3001540be79f258756c2878d
parent53ed9fe86ba42abb275bac8008791303e809fe2b
MEDIUM: debug: make the complain() function print the prefix

The prefix ("ABORT at", "FATAL:", "WARNING:") as well as the second level
("bug condition", ...) are entirely determined by the details bit field,
so there is no reason to have to build this string in the caller, instead
we can let complain() build it entirely from the details into the local
iovec, so let's do that.

The prefix is now dropped from the whole call chain as it's no longer
useful. This further reduces the code size by 17.5 kB.
include/haproxy/bug.h
src/debug.c