summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-04-22 21:31:12 +0200
committerThomas Haller <thaller@redhat.com>2022-04-22 21:31:36 +0200
commit6b2f238f361d3c9f71ba4ad3116a0b80eb3c3625 (patch)
tree4266f187daf3353ae940df32352357c0fb7da9aa
parentd3bd278a9a6b869f5a476a515c915ee8213e370e (diff)
downloadlibnl-6b2f238f361d3c9f71ba4ad3116a0b80eb3c3625.tar.gz
netlink/utils.h: mark nl_dump() with __attribute__((format(printf,a,b)))
-rw-r--r--include/netlink/utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netlink/utils.h b/include/netlink/utils.h
index ccd163dd..62652b16 100644
--- a/include/netlink/utils.h
+++ b/include/netlink/utils.h
@@ -76,8 +76,8 @@ extern int nl_str2ip_proto(const char *);
/* Dumping helpers */
extern void nl_new_line(struct nl_dump_params *);
-extern void nl_dump(struct nl_dump_params *, const char *, ...);
-extern void nl_dump_line(struct nl_dump_params *, const char *, ...);
+extern void nl_dump(struct nl_dump_params *, const char *, ...) _nl_attribute_printf(2, 3);
+extern void nl_dump_line(struct nl_dump_params *, const char *, ...) _nl_attribute_printf(2, 3);
enum {
NL_CAPABILITY_NONE,