]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: make the complain() function start to complete the message
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2026 16:28:38 +0000 (18:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit53ed9fe86ba42abb275bac8008791303e809fe2b
treeda5638ef67971e6393bb36276c6da7e341c36446
parent8f8cca5f0ea838d5cfc7dc8ab4cecb57fcb001c0
MINOR: debug: make the complain() function start to complete the message

The function will be extended to automatically prepend/append some info.
For now all it does is to always prepend/append the "\n" that each message
has at the beggining and at the end.

We're doing this into a locally allocated iovec and emit it at once using
writev(). This will be easy to extend to pass extra info. The \n alone
removed 1.5 kB of code.
include/haproxy/bug.h
src/debug.c