]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fix display of negative route metrics and tags
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 6 Oct 2017 01:38:19 +0000 (22:38 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 6 Oct 2017 01:55:58 +0000 (22:55 -0300)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_vty.c

index 04cd17cedb1d5720b06d55c49c81f3cece53cbcb..d86cc88b42a308a801e2ead1d4d7b7a50fa42bf5 100644 (file)
@@ -455,7 +455,7 @@ static void vty_show_ip_route_detail(struct vty *vty, struct route_node *rn,
                vty_out(vty, ", distance %u, metric %u", re->distance,
                        re->metric);
                if (re->tag)
-                       vty_out(vty, ", tag %d", re->tag);
+                       vty_out(vty, ", tag %u", re->tag);
                if (re->mtu)
                        vty_out(vty, ", mtu %u", re->mtu);
                if (re->vrf_id != VRF_DEFAULT) {
@@ -829,7 +829,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
 
                        /* Distance and metric display. */
                        if (re->type != ZEBRA_ROUTE_CONNECT)
-                               len += vty_out(vty, " [%d/%d]", re->distance,
+                               len += vty_out(vty, " [%u/%u]", re->distance,
                                               re->metric);
                } else {
                        vty_out(vty, "  %c%*c",