MINOR: debug: explicitly permit the counter condition to be empty
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Nov 2024 07:47:00 +0000 (08:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Nov 2024 07:47:00 +0000 (08:47 +0100)
commite119095290fe6318de53a8dcb6b0eeda90662737
treea7afff8de5cb34ff87a82633fa9dadcd6070d209
parent8f28dbeea94e11e2327362755f16d18b301fd153
MINOR: debug: explicitly permit the counter condition to be empty

In order to count new event types, we'll need to support empty conditions
so that we don't have to fake if (1) that would pollute the output. This
change checks if #cond is an empty string before concatenating it with
the optional var args, and avoids dumping the colon on the dump if the
whole description is empty.
include/haproxy/bug.h
src/debug.c