mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-13 15:00:59 +01:00
This commit adds support for an optional second argument to BUG_ON(), WARN_ON(), CHECK_IF(), that can be a constant string. When such an argument is given, it will be printed on a second line after the existing first message that contains the condition. This can be used to provide more human-readable explanations about what happened, such as "too low on memory" or "memory corruption detected" that may help a user resolve the incident by themselves.