]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: add a new WARN_ON_ONCE() macro
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Feb 2022 07:55:11 +0000 (08:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Feb 2022 10:55:47 +0000 (11:55 +0100)
commit4e0a8b12241c464760ecb8dc965b913e8a17282c
treedfe913c193d358eb07077ec1edb3eb43cd19cd89
parenta79db30c63e3c07995a9a55a6f0f9ca53d94a977
DEBUG: add a new WARN_ON_ONCE() macro

This one will maintain a static counter per call place and will only
emit the warning on the first call. It may be used to invite users to
report an unexpected event without spamming them with messages.
include/haproxy/bug.h
src/debug.c