]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
include: add `format` attribute to `__ulogd_log` declaration
authorJeremy Sowden <jeremy@azazel.net>
Sun, 21 Nov 2021 20:41:35 +0000 (20:41 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 23 Nov 2021 13:24:53 +0000 (14:24 +0100)
commit2bbccbe70eec3a0503bee6cde76d8349fd8f675e
tree1506fc60a0b24c466f6ade84ad753e5941568438
parent25b348fa0c482619a39fa89cd423f2cbb47d5dc1
include: add `format` attribute to `__ulogd_log` declaration

`__ulogd_log` takes a printf-style format string and matching arguments.
Add the gcc `format` attribute to its declaration in order to allow the
compiler to type-check the function arguments against the specifiers in
the format string.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/ulogd/ulogd.h