]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: debug: use \x1e (RS) to delimit the condition from vaargs in DBG_COUNT()
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Aug 2026 17:02:28 +0000 (19:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commite862af5ef74f0a41788ab4bf72ce33fbbb2bdfc2
tree378836443db667f07f4ea93adff299588ff4b775
parent28a09c38ffb154d057ce11b062d220c05ca9b052
MEDIUM: debug: use \x1e (RS) to delimit the condition from vaargs in DBG_COUNT()

The principle here is to reduce the reliance on multiple pointers in the
debug_count struct while still keeping a delimitation between records.
For this, we use the ASCII record separator character (\x1e or RS) that
is not present in the rest of our messages and has no reason to land there
by accident.

This slightly reduces the code size (2kB) but the purpose is to prepare
a next step where these definitions will benefit the BUG_ON*() macros.
include/haproxy/bug.h
src/debug.c