]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Change log statements to use unsigned format
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 24 Jul 2018 15:14:07 +0000 (11:14 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 24 Jul 2018 15:14:07 +0000 (11:14 -0400)
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/if_netlink.c
zebra/rt_netlink.c

index 67b6704d6ec31a82cacdb4cd554b8b745ff683f6..f03252369fa52b9aa7cd6dddf6bb84717d34b11f 100644 (file)
@@ -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;
                }
index 8393ba6f24d8934944e1947f25dd32c9b88054b8..f396044bb4cfdd0617426d3f28432080648e2ecc 100644 (file)
@@ -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;
                }