]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
utils: add format attribute
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 11 Jan 2022 17:54:29 +0000 (09:54 -0800)
committerDavid Ahern <dsahern@kernel.org>
Wed, 26 Jan 2022 17:19:08 +0000 (10:19 -0700)
One more format attribute needed to resolve clang warnings.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
include/utils.h

index b6c468e9cc862f13e80d2e8cf706a72788316529..d644202cc5296a8d8b72957febf8bfb66e68d1d6 100644 (file)
@@ -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))