]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: rely on the __dbg_cnt_ counter for _BUG_ON_ONCE()
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Aug 2026 07:48:29 +0000 (09:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commita8aa8cd64e4ffd60ee7c8d95fea14b45cc0cd922
tree667e893fa9fa864f87b8d2b3244bac644f05a903
parent7756734d8799bd1c204e9a20e43e524372480d47
MINOR: debug: rely on the __dbg_cnt_ counter for _BUG_ON_ONCE()

Since we already have a counter implemented when using DBG_COUNT(),
let's rely on this counter instead of declaring a local static one.
We always increment using a fetch_add() now, but regardless, this
reduces the code by 2 kB.
include/haproxy/bug.h