diff options
| author | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-06-30 17:52:56 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2017-06-30 17:52:56 +0000 |
| commit | 1161690b93b48fbd07f4ee25c1261574db8d71c5 (patch) | |
| tree | 7ffbe5c3b333b1fe0b8a3f042d8b1af602d48019 /lib/spf_backoff.c | |
| parent | ab782c96f881b1fdd59f52ba972cd82b5eeadc66 (diff) | |
| parent | 5fca4e3635c2778e8349bce0eaf944c26913d321 (diff) | |
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label-misc3
Conflicts:
bgpd/bgp_route.c
Diffstat (limited to 'lib/spf_backoff.c')
| -rw-r--r-- | lib/spf_backoff.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/spf_backoff.c b/lib/spf_backoff.c index 7e34947344..7cbb300c5f 100644 --- a/lib/spf_backoff.c +++ b/lib/spf_backoff.c @@ -223,44 +223,44 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty, const char *prefix) { - vty_out(vty, "%sCurrent state: %s%s", prefix, - spf_backoff_state2str(backoff->state), VTY_NEWLINE); - vty_out(vty, "%sInit timer: %ld msec%s", prefix, - backoff->init_delay, VTY_NEWLINE); - vty_out(vty, "%sShort timer: %ld msec%s", prefix, - backoff->short_delay, VTY_NEWLINE); - vty_out(vty, "%sLong timer: %ld msec%s", prefix, - backoff->long_delay, VTY_NEWLINE); - vty_out(vty, "%sHolddown timer: %ld msec%s", prefix, - backoff->holddown, VTY_NEWLINE); + vty_outln (vty, "%sCurrent state: %s", prefix, + spf_backoff_state2str(backoff->state)); + vty_outln (vty, "%sInit timer: %ld msec", prefix, + backoff->init_delay); + vty_outln (vty, "%sShort timer: %ld msec", prefix, + backoff->short_delay); + vty_outln (vty, "%sLong timer: %ld msec", prefix, + backoff->long_delay); + vty_outln (vty, "%sHolddown timer: %ld msec", prefix, + backoff->holddown); if (backoff->t_holddown) { struct timeval remain = thread_timer_remain(backoff->t_holddown); - vty_out(vty, "%s Still runs for %ld msec%s", - prefix, remain.tv_sec * 1000 + remain.tv_usec/1000, VTY_NEWLINE); + vty_outln (vty, "%s Still runs for %ld msec", + prefix, remain.tv_sec * 1000 + remain.tv_usec / 1000); } else { - vty_out(vty, "%s Inactive%s", prefix, VTY_NEWLINE); + vty_outln (vty, "%s Inactive", prefix); } - vty_out(vty, "%sTimeToLearn timer: %ld msec%s", prefix, - backoff->timetolearn, VTY_NEWLINE); + vty_outln (vty, "%sTimeToLearn timer: %ld msec", prefix, + backoff->timetolearn); if (backoff->t_timetolearn) { struct timeval remain = thread_timer_remain(backoff->t_timetolearn); - vty_out(vty, "%s Still runs for %ld msec%s", - prefix, remain.tv_sec * 1000 + remain.tv_usec/1000, VTY_NEWLINE); + vty_outln (vty, "%s Still runs for %ld msec", + prefix, remain.tv_sec * 1000 + remain.tv_usec / 1000); } else { - vty_out(vty, "%s Inactive%s", prefix, VTY_NEWLINE); + vty_outln (vty, "%s Inactive", prefix); } - vty_out(vty, "%sFirst event: %s%s", prefix, - timeval_format(&backoff->first_event_time), VTY_NEWLINE); - vty_out(vty, "%sLast event: %s%s", prefix, - timeval_format(&backoff->last_event_time), VTY_NEWLINE); + vty_outln (vty, "%sFirst event: %s", prefix, + timeval_format(&backoff->first_event_time)); + vty_outln (vty, "%sLast event: %s", prefix, + timeval_format(&backoff->last_event_time)); } DEFUN(spf_backoff_debug, @@ -291,7 +291,7 @@ spf_backoff_write_config(struct vty *vty) if (debug_spf_backoff) { - vty_out(vty, "debug spf-delay-ietf%s", VTY_NEWLINE); + vty_outln (vty, "debug spf-delay-ietf"); written++; } |
