]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: move printing of the hint to ha_backtrace_to_stderr()
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Aug 2026 14:22:40 +0000 (16:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commitacbf369e678d5fdc83a7f3bd1630c4fa9f7552d2
treea49931e2c7165c5379e8308d00c032526a76f579
parent4e29ff0ec76a8dad256e8f06950a99b0ea7f8fb9
MINOR: debug: move printing of the hint to ha_backtrace_to_stderr()

The hint suggesting the user to contact developers with a core is only
emitted along with a backtrace sent to stderr, and it's currently
present as a macro in many call places. Let's move it to the function
and pass an argument to ask for it to be emitted (i.e. only upon crash
since a warning doesn't produce a core).

This reduces the binary size by 38 kB.
include/haproxy/bug.h
src/debug.c