]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: use appropriate printf formatter for some uint32_t
authorDonald Sharp <sharpd@nvidia.com>
Mon, 15 Mar 2021 14:56:08 +0000 (10:56 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 15 Mar 2021 14:56:08 +0000 (10:56 -0400)
newm and existm are uint32_t so let's use %u instead of %d
to print them out.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_route.c

index 9165dcc1d78e0ef98b1392c41295e18741e8d64f..87fd5f28ca5296fcd9d12b106d067d19488ab93e 100644 (file)
@@ -995,7 +995,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
        if (newm < existm) {
                if (debug)
                        zlog_debug(
-                               "%s: %s wins over %s due to IGP metric %d < %d",
+                               "%s: %s wins over %s due to IGP metric %u < %u",
                                pfx_buf, new_buf, exist_buf, newm, existm);
                ret = 1;
        }
@@ -1003,7 +1003,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
        if (newm > existm) {
                if (debug)
                        zlog_debug(
-                               "%s: %s loses to %s due to IGP metric %d > %d",
+                               "%s: %s loses to %s due to IGP metric %u > %u",
                                pfx_buf, new_buf, exist_buf, newm, existm);
                ret = 0;
        }
@@ -1025,7 +1025,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
                        if (newm < existm) {
                                if (debug)
                                        zlog_debug(
-                                               "%s: %s wins over %s due to CLUSTER_LIST length %d < %d",
+                                               "%s: %s wins over %s due to CLUSTER_LIST length %u < %u",
                                                pfx_buf, new_buf, exist_buf,
                                                newm, existm);
                                ret = 1;
@@ -1034,7 +1034,7 @@ static int bgp_path_info_cmp(struct bgp *bgp, struct bgp_path_info *new,
                        if (newm > existm) {
                                if (debug)
                                        zlog_debug(
-                                               "%s: %s loses to %s due to CLUSTER_LIST length %d > %d",
+                                               "%s: %s loses to %s due to CLUSTER_LIST length %u > %u",
                                                pfx_buf, new_buf, exist_buf,
                                                newm, existm);
                                ret = 0;