]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: add errname to print errno macro name
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Fri, 20 Sep 2024 21:14:41 +0000 (23:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Jan 2025 08:54:57 +0000 (09:54 +0100)
commit44537379fcba3bc89f3ead1ad9cd69a8d567fc72
tree00f3a3d016fd573c0aa79aff583a487cbf7960ca
parent42bac9339cc3e3eed99ae1664a4f3633183ab640
MINOR: tools: add errname to print errno macro name

Add helper to print the name of errno's corresponding macro, for example
"EINVAL" for errno=22. This may be helpful for debugging and for using in
some CLI commands output. The switch-case in errname() contains only the
errnos currently used in the code. So, it needs to be extended, if one starts
to use new syscalls.
include/haproxy/tools.h