]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DBEUG: add a new WARN_ON() macro
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Feb 2022 07:52:39 +0000 (08:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Feb 2022 10:55:47 +0000 (11:55 +0100)
commit305cfbde43d0e8c0529aa61b03845dc86e35ac14
treeffbfc378a87a6ecae125349b0e6718dfaa0cb0fa
parentf19aab88d5c92e9cb9cbb9f7c9b84e39ba2e2709
DBEUG: add a new WARN_ON() macro

This is the same as BUG_ON() except that it never crashes and only emits
a warning and a backtrace, inviting users to report the problem. This will
be usable for non-fatal issues that should not happen and need to be fixed.
This way the BUG_ON() when using DEBUG_STRICT_NOCRASH is effectively an
equivalent of WARN_ON().
include/haproxy/bug.h
src/debug.c