Date: Sat, 19 Jul 2025 05:16:46 GMT From: Lexi Winter <ivy@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 2c8c8fe02a87 - stable/13 - nlmsg_report_err_msg: add __printflike annotation Message-ID: <202507190516.56J5GkO5028763@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=2c8c8fe02a8789f9716212c45ced15f75173b50b commit 2c8c8fe02a8789f9716212c45ced15f75173b50b Author: Lexi Winter <ivy@FreeBSD.org> AuthorDate: 2025-07-10 21:02:21 +0000 Commit: Lexi Winter <ivy@FreeBSD.org> CommitDate: 2025-07-19 01:12:29 +0000 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 db55cc8110ceea084c6f52a1ecfd6ab87e0aac2b) --- sys/netlink/netlink_message_parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netlink/netlink_message_parser.h b/sys/netlink/netlink_message_parser.h index 7b5fde49a07c..c07c3b288796 100644 --- a/sys/netlink/netlink_message_parser.h +++ b/sys/netlink/netlink_message_parser.h @@ -190,7 +190,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__); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507190516.56J5GkO5028763>