MINOR: debug: make mark_tainted() return the previous value
authorWilly Tarreau <w@1wt.eu>
Sat, 19 Oct 2024 13:12:47 +0000 (15:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 Oct 2024 13:54:53 +0000 (15:54 +0200)
commit922bd2d1c69c81c09474af6f4d9c8b1715c332b9
treea012d33637d73032c43b94865109d6ce1adadefe
parent6d98108aa970e448864c9b312e58a5319b3b38b1
MINOR: debug: make mark_tainted() return the previous value

Since mark_tainted() uses atomic ops to update the tainted status, let's
make it return the prior value, which will allow the caller to detect
if it's the first one to set it or not.

(cherry picked from commit 8e048603d1bba0721433a5ae0480fbf1ab6f4897)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/bug.h