summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-02-12 11:49:54 -0800
committerMichael Larson <slioch@eng-140.vyatta.com>2008-02-12 11:49:54 -0800
commiteedab9a7b0e17f70e5cbe1fe6d67bc8aea6efcb7 (patch)
tree78875f4c5cebce57113c474cc6b6572f273e324e
parent3886503c112d89cca1b530435b12012358f1a94f (diff)
downloadquagga-eedab9a7b0e17f70e5cbe1fe6d67bc8aea6efcb7.tar.bz2
quagga-eedab9a7b0e17f70e5cbe1fe6d67bc8aea6efcb7.tar.xz
fix for bug 2750. will also submit to quagga dvlprs.
-rw-r--r--bgpd/bgp_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 927e99a1..7268e753 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -6628,8 +6628,8 @@ bgp_show_summary (struct vty *vty, struct bgp *bgp, int afi, int safi)
/* Usage summary and header */
vty_out (vty,
- "BGP router identifier %s, local AS number %d%s",
- inet_ntoa (bgp->router_id), bgp->as, VTY_NEWLINE);
+ "BGP router identifier %s, local AS number %lu%s",
+ inet_ntoa (bgp->router_id), (long unsigned)bgp->as, VTY_NEWLINE);
ents = bgp_table_count (bgp->rib[afi][safi]);
vty_out (vty, "RIB entries %ld, using %s of memory%s", ents,
@@ -7185,7 +7185,7 @@ bgp_show_peer (struct vty *vty, struct peer *p)
/* Configured IP address. */
vty_out (vty, "BGP neighbor is %s, ", p->host);
- vty_out (vty, "remote AS %d, ", p->as);
+ vty_out (vty, "remote AS %lu, ", (long unsigned)p->as);
vty_out (vty, "local AS %d%s, ",
p->change_local_as ? p->change_local_as : p->local_as,
CHECK_FLAG (p->flags, PEER_FLAG_LOCAL_AS_NO_PREPEND) ?
@@ -7968,7 +7968,7 @@ bgp_show_rsclient_summary (struct vty *vty, struct bgp *bgp,
"Route Server's BGP router identifier %s%s",
inet_ntoa (bgp->router_id), VTY_NEWLINE);
vty_out (vty,
- "Route Server's local AS number %d%s", bgp->as,
+ "Route Server's local AS number %lu%s", (long unsigned)bgp->as,
VTY_NEWLINE);
vty_out (vty, "%s", VTY_NEWLINE);