From: Stephen Hemminger Date: Tue, 11 Jan 2022 17:54:29 +0000 (-0800) Subject: utils: add format attribute X-Git-Tag: v5.18.0~62^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d5e29e60f54f095136a6b3a0b75443c7e70d086;p=thirdparty%2Fiproute2.git utils: add format attribute One more format attribute needed to resolve clang warnings. Signed-off-by: Stephen Hemminger Signed-off-by: David Ahern --- diff --git a/include/utils.h b/include/utils.h index b6c468e9c..d644202cc 100644 --- a/include/utils.h +++ b/include/utils.h @@ -261,7 +261,9 @@ int print_timestamp(FILE *fp); void print_nlmsg_timestamp(FILE *fp, const struct nlmsghdr *n); unsigned int print_name_and_link(const char *fmt, - const char *name, struct rtattr *tb[]); + const char *name, struct rtattr *tb[]) + __attribute__((format(printf, 1, 0))); + #define BIT(nr) (UINT64_C(1) << (nr))