]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ncbuf: use standard BUG_ON with DEBUG_STRICT
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 28 Nov 2022 14:10:30 +0000 (15:10 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 29 Nov 2022 14:15:27 +0000 (15:15 +0100)
commit2526a6aca5c6f453571f2ccdcea7e2ab66aeea67
tree9d4417f7a58a5ea7d25dd9d4f7a09a4fa88a10fb
parentd64a26f0238f386065e26654e6a8a925f96c8baa
CLEANUP: ncbuf: use standard BUG_ON with DEBUG_STRICT

ncbuf can be compiled for haproxy or standalone to run unit test suite.
For the latest mode, BUG_ON() macro has been re-implemented in a simple
version.

The inclusion of the default or the redefined macro relied on DEBUG_DEV.
Change this to now rely on DEBUG_STRICT as this is activated for the
default build.

This change is safe as only BUG_ON_HOT() macro is used in ncbuf code,
which is activated only with the default value DEBUG_STRICT=2.

This should be backported up to 2.6.
src/ncbuf.c