diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-05-12 23:48:40 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-05-12 23:48:40 +0000 |
commit | b2518c1e884cb8b4f4502f8b90b1c368e1a352ec (patch) | |
tree | 7099a9dd8bf20d560ed9565b8ecc9eaaf50bd203 /bgpd/bgp_aspath.c | |
parent | 06e110f9372f61bea23c2eaa25e7850b254bbd1a (diff) |
[bgpd] CID #4,#5,#9,#10, simplify aspath_print_vty usage
2006-05-12 Paul Jakma <paul.jakma@sun.com>
* bgp_aspath.{c,h}: (aspath_print_vty) take a format string,
so as to reduce burden on callers, all in bgp_route.c
* bgp_route.c: (route_vty_out{,tmp}) Update to match
aspath_print_vty, simplifying checks needed to get spacing
right. CID #4,#5.
({damp,flap}_route_vty_out) Ditto, CID #9, #10
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r-- | bgpd/bgp_aspath.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index 9fce6e31..d404309c 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -1501,9 +1501,10 @@ aspath_print (struct aspath *as) /* Printing functions */ void -aspath_print_vty (struct vty *vty, struct aspath *as) +aspath_print_vty (struct vty *vty, const char *format, struct aspath *as) { - vty_out (vty, "%s", as->str); + assert (format); + vty_out (vty, format, as->str); } static void |