]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: missing some ARGC_* entries in fmt_directives()
authorWilly Tarreau <w@1wt.eu>
Thu, 9 Jul 2015 09:20:00 +0000 (11:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 Jul 2015 09:20:00 +0000 (11:20 +0200)
commit53e1a6d31743b1bef6063ff30b812521391ae3c3
tree8e709bcf1307547c6ce0565beed7a803e85510ab
parent5fc7d7e8ce3f10fe29253b298507bbce8e3953d2
BUG/MINOR: log: missing some ARGC_* entries in fmt_directives()

ARGC_CAP was not added to fmt_directives() which is used to format
error messages when failing to parse log format expressions. The
whole switch/case has been reorganized to match the declaration
order making it easier to spot missing values. The default is not
the "log" directive anymore but "undefined" asking to report the
bug.

Backport to 1.5 is not strictly needed but is desirable at least
for code sanity.
src/log.c