mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
bd2b9dbb4b
commit
9af17f0102
1 changed files with 2 additions and 1 deletions
|
|
@ -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__); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue