nlmsg_report_err_msg: add __printflike annotation

Reviewed by:	kevans, kp
Approved by:	kevans (mentor)
Differential Revision:	https://reviews.freebsd.org/D51234
This commit is contained in:
Lexi Winter 2025-07-10 22:02:21 +01:00
parent 953b3a0614
commit db55cc8110

View file

@ -209,7 +209,8 @@ int nlattr_get_nested(struct nlattr *nla, struct nl_pstate *npt,
int nlattr_get_nested_ptr(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__); \