diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-27 23:07:58 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-17 02:27:08 +0200 |
commit | 7e9fee6a662d93863a99bf967ac820ad26d23a37 (patch) | |
tree | 5036590d6cb005f0d77eb8bb2f3166b1b6055861 /vrrpd/vrrp_packet.c | |
parent | vrrpd: log why vrouter could not be started (diff) | |
download | frr-7e9fee6a662d93863a99bf967ac820ad26d23a37.tar.xz frr-7e9fee6a662d93863a99bf967ac820ad26d23a37.zip |
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>
Diffstat (limited to 'vrrpd/vrrp_packet.c')
-rw-r--r-- | vrrpd/vrrp_packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vrrpd/vrrp_packet.c b/vrrpd/vrrp_packet.c index db31d163b..551e142e5 100644 --- a/vrrpd/vrrp_packet.c +++ b/vrrpd/vrrp_packet.c @@ -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 */ |