diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2018-07-24 17:14:07 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2018-07-24 17:14:07 +0200 |
commit | 758297039c05736c7881ff8719fe5a300cc0c4da (patch) | |
tree | b6ac50e6b1707a49002e8400943bc7d0327ef50a /zebra | |
parent | zebra: Add check for prefix length from kernel messages (diff) | |
download | frr-758297039c05736c7881ff8719fe5a300cc0c4da.tar.xz frr-758297039c05736c7881ff8719fe5a300cc0c4da.zip |
Change log statements to use unsigned format
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/if_netlink.c | 4 | ||||
-rw-r--r-- | zebra/rt_netlink.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 67b6704d6..f03252369 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -993,7 +993,7 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (ifa->ifa_family == AF_INET) { if (ifa->ifa_prefixlen > IPV4_MAX_BITLEN) { zlog_warn( - "Invalid prefix length: %d received from kernel interface addr change: %d", + "Invalid prefix length: %u received from kernel interface addr change: %u", ifa->ifa_prefixlen, h->nlmsg_type); return 0; } @@ -1009,7 +1009,7 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (ifa->ifa_family == AF_INET6) { if (ifa->ifa_prefixlen > IPV6_MAX_BITLEN) { zlog_warn( - "Invalid prefix length: %d received from kernel interface addr change: %d", + "Invalid prefix length: %u received from kernel interface addr change: %u", ifa->ifa_prefixlen, h->nlmsg_type); return 0; } diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 8393ba6f2..f396044bb 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -386,7 +386,7 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id, p.family = AF_INET; if (rtm->rtm_dst_len > IPV4_MAX_BITLEN) { zlog_warn( - "Invalid destination prefix length: %d received from kernel route change", + "Invalid destination prefix length: %u received from kernel route change", rtm->rtm_dst_len); return 0; } @@ -400,7 +400,7 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id, p.family = AF_INET6; if (rtm->rtm_dst_len > IPV6_MAX_BITLEN) { zlog_warn( - "Invalid destination prefix length: %d received from kernel route change", + "Invalid destination prefix length: %u received from kernel route change", rtm->rtm_dst_len); return 0; } @@ -410,7 +410,7 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id, src_p.family = AF_INET6; if (rtm->rtm_src_len > IPV6_MAX_BITLEN) { zlog_warn( - "Invalid source prefix length: %d received from kernel route change", + "Invalid source prefix length: %u received from kernel route change", rtm->rtm_src_len); return 0; } |