From: Amaury Denoyelle Date: Mon, 28 Nov 2022 14:10:30 +0000 (+0100) Subject: CLEANUP: ncbuf: use standard BUG_ON with DEBUG_STRICT X-Git-Tag: v2.7.0~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2526a6aca5c6f453571f2ccdcea7e2ab66aeea67;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/ncbuf.c b/src/ncbuf.c index 5b661f4c4b..a96cf598ed 100644 --- a/src/ncbuf.c +++ b/src/ncbuf.c @@ -15,7 +15,7 @@ #include #endif /* STANDALONE */ -#ifdef DEBUG_DEV +#ifdef DEBUG_STRICT # include #else # include