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
This commit is contained in:
parent
953b3a0614
commit
db55cc8110
1 changed files with 2 additions and 1 deletions
|
|
@ -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__); \
|
||||
|
|
|
|||
Loading…
Reference in a new issue