[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220120211153.189476-3-stephen@networkplumber.org>
Date: Thu, 20 Jan 2022 13:11:44 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>
Subject: [PATCH v4 iproute2-next 02/11] utils: add format attribute
One more format attribute needed to resolve clang warnings.
Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
---
include/utils.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/utils.h b/include/utils.h
index b6c468e9cc86..d644202cc529 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))
--
2.30.2
Powered by blists - more mailing lists