log.c: Spray extra `FORMAT(...)' attributes to muffle Clang warnings.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 19 Sep 2019 20:01:22 +0000 (20:01 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 21 Sep 2019 10:03:58 +0000 (11:03 +0100)
commit5ffc82e77c4ba6b9cb7bd93f4bd76798c085128e
tree46db2115fdaf79d04f412c6ab9eb47bc717bea42
parent4c795bdb6d8f0a75a7a484775151e810aac3de4c
log.c: Spray extra `FORMAT(...)' attributes to muffle Clang warnings.

Clang gets really upset about non-literal format strings, unless it can
check from the function attributes that you're playing by the rules.

I've taken the liberty of simplifying the annotations on static
functions: rather than duplicating the entire argument list, it suffices
to attach the attribute to the start of the function definition.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Acked-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
log.c