mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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.
This commit is contained in:
parent
d64a26f023
commit
2526a6aca5
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
#include <haproxy/list.h>
|
||||
#endif /* STANDALONE */
|
||||
|
||||
#ifdef DEBUG_DEV
|
||||
#ifdef DEBUG_STRICT
|
||||
# include <haproxy/bug.h>
|
||||
#else
|
||||
# include <stdio.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue