From: Renato Westphal Date: Fri, 6 Oct 2017 01:38:19 +0000 (-0300) Subject: zebra: fix display of negative route metrics and tags X-Git-Tag: frr-4.0-dev~236^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8526b84200a7e733fa507e2805cae4755423d09e;p=matthieu%2Ffrr.git zebra: fix display of negative route metrics and tags Signed-off-by: Renato Westphal --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 04cd17cedb..d86cc88b42 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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",