nlmsg_report_err_msg: add __printflike annotation

Reviewed by:	kevans, kp
Approved by:	kevans (mentor)
Differential Revision:	https://reviews.freebsd.org/D51234

(cherry picked from commit db55cc8110)
This commit is contained in:
Lexi Winter 2025-07-10 22:02:21 +01:00 committed by Franco Fichtner
parent bd2b9dbb4b
commit 9af17f0102

View file

@ -196,7 +196,8 @@ int nlattr_get_nla(struct nlattr *nla, struct nl_pstate *npt,
int nlattr_get_nested(struct nlattr *nla, struct nl_pstate *npt,
const void *arg, void *target);
bool nlmsg_report_err_msg(struct nl_pstate *npt, const char *fmt, ...);
bool nlmsg_report_err_msg(struct nl_pstate *npt, const char *fmt, ...)
__printflike(2, 3);
#define NLMSG_REPORT_ERR_MSG(_npt, _fmt, ...) { \
nlmsg_report_err_msg(_npt, _fmt, ## __VA_ARGS__); \