diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2018-07-25 20:08:24 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2018-07-25 20:08:24 +0200 |
commit | 81227874400694380959a76fa54cd6fbbc4128d2 (patch) | |
tree | 93053067a18fd7584482e1445a864412a7918912 /zebra | |
parent | zebra: Ignore AF_ETHERNET and AF_MPLS in route_change as well (diff) | |
download | frr-81227874400694380959a76fa54cd6fbbc4128d2.tar.xz frr-81227874400694380959a76fa54cd6fbbc4128d2.zip |
zebra: Format log for address family check
Switched the address family check 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 | 4 | ||||
-rw-r--r-- | zebra/rule_netlink.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index 8943b434d..462bf4f03 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -893,7 +893,7 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (ifa->ifa_family != AF_INET && ifa->ifa_family != AF_INET6) { zlog_warn( - "Invalid address family: %d received from kernel interface addr change: %d", + "Invalid address family: %u received from kernel interface addr change: %u", ifa->ifa_family, h->nlmsg_type); return 0; } @@ -1121,7 +1121,7 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (!(ifi->ifi_family == AF_UNSPEC || ifi->ifi_family == AF_BRIDGE || ifi->ifi_family == AF_INET6)) { zlog_warn( - "Invalid address family: %d received from kernel link change: %d", + "Invalid address family: %u received from kernel link change: %u", ifi->ifi_family, h->nlmsg_type); return 0; } diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 53bf4bc6e..51844f018 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -747,7 +747,7 @@ int netlink_route_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) if (!(rtm->rtm_family == AF_INET || rtm->rtm_family == AF_INET6)) { zlog_warn( - "Invalid address family: %d received from kernel route change: %d", + "Invalid address family: %u received from kernel route change: %u", rtm->rtm_family, h->nlmsg_type); return 0; } @@ -2398,7 +2398,7 @@ int netlink_neigh_change(struct nlmsghdr *h, ns_id_t ns_id) return netlink_ipneigh_change(h, len, ns_id); else { zlog_warn( - "Invalid address family: %d received from kernel neighbor change: %d", + "Invalid address family: %u received from kernel neighbor change: %u", ndm->ndm_family, h->nlmsg_type); return 0; } diff --git a/zebra/rule_netlink.c b/zebra/rule_netlink.c index d683e92bc..87d3769a5 100644 --- a/zebra/rule_netlink.c +++ b/zebra/rule_netlink.c @@ -206,7 +206,7 @@ int netlink_rule_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) frh = NLMSG_DATA(h); if (frh->family != AF_INET && frh->family != AF_INET6) { zlog_warn( - "Invalid address family: %d received from kernel rule change: %d", + "Invalid address family: %u received from kernel rule change: %u", frh->family, h->nlmsg_type); return 0; } |