diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2012-04-13 13:46:07 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-05-02 17:03:21 +0200 |
commit | ddc943dec3c017583f81cce388c7d453293156c7 (patch) | |
tree | a36d2bca91b1f3a7545a135b3bafccc40d0ca47b /bgpd/bgp_route.c | |
parent | 8794e8d229dc9fe29ea31424883433d4880ef408 (diff) | |
download | quagga-ddc943dec3c017583f81cce388c7d453293156c7.tar.bz2 quagga-ddc943dec3c017583f81cce388c7d453293156c7.tar.xz |
bgpd, zebra: Fix format for some metric outputs
Metrics are unsigned values.
* bgpd/bgp_{debug,route,vty}.c,
* zebra/zebra_vty.c: replace %d with %u for metrics & distances
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
[reworded commit message]
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 087f8396..9f8d8232 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -5954,7 +5954,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p, if (! CHECK_FLAG (binfo->flags, BGP_INFO_VALID)) vty_out (vty, " (inaccessible)"); else if (binfo->extra && binfo->extra->igpmetric) - vty_out (vty, " (metric %d)", binfo->extra->igpmetric); + vty_out (vty, " (metric %u)", binfo->extra->igpmetric); vty_out (vty, " from %s", sockunion2str (&binfo->peer->su, buf, SU_ADDRSTRLEN)); if (attr->flag & ATTR_FLAG_BIT(BGP_ATTR_ORIGINATOR_ID)) vty_out (vty, " (%s)", inet_ntoa (attr->extra->originator_id)); |