]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: add lf_int() wrapper to print integers
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 27 Mar 2024 09:17:11 +0000 (10:17 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 26 Apr 2024 16:39:31 +0000 (18:39 +0200)
commit1fa2da18cdea2b933252382033f690928ef09733
treeecb423d986be51aa755af3abdcf86ff0210bcaf4
parentd3c92a3a830c6909cc3784f879dace9627ce23e9
MINOR: log: add lf_int() wrapper to print integers

Wrap ltoa(), lltoa(), ultoa() and utoa_pad() functions that are used by
sess_build_logline() to print numerical values by implementing a dedicated
helper named lf_int() that takes <dft_hld> as argument to know how to
write the integer by default (when no encoding is specified).

LF_INT_UTOA_PAD_4 is used to emulate utoa_pad(x, 4) since it's found only
once under sess_build_logline(), thus there is no need to pass an extra
parameter to lf_int() function.
src/log.c