vrrpd: fix bad fmt specifiers in dgram validator

They used a %u where they should have used a PRIu16, and a %lu where
they wanted a %zu. Shame!

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2019-02-27 22:07:58 +00:00
parent 6309f71c9b
commit 7e9fee6a66

View File

@ -211,7 +211,8 @@ ssize_t vrrp_pkt_parse_datagram(int family, int version, struct msghdr *m,
/* IP total length check */
VRRP_PKT_VCHECK(
ntohs(ip->ip_len) == read,
"IPv4 packet length field does not match # received bytes; %u != %lu",
"IPv4 packet length field does not match # received bytes; %" PRIu16
"!= %zu",
ntohs(ip->ip_len), read);
/* TTL check */