diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-25 14:24:16 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-25 14:24:16 +0200 |
commit | 00284f0ed67370c7c697adf20b08840482ea18ea (patch) | |
tree | e7ba4b06530a2a31bbc78465588ad9afb28b4db5 /proto/bfd | |
parent | cec40a74679821513e627f93b924067a404f6475 (diff) |
BFD: Fix formatting of 'show bfd sessions'
The formatting was broken due to longer date in 'since' column.
Diffstat (limited to 'proto/bfd')
-rw-r--r-- | proto/bfd/bfd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c index 93073070..f774e67b 100644 --- a/proto/bfd/bfd.c +++ b/proto/bfd/bfd.c @@ -1084,7 +1084,7 @@ bfd_show_sessions(struct proto *P) } cli_msg(-1020, "%s:", p->p.name); - cli_msg(-1020, "%-25s %-10s %-10s %-10s %8s %8s", + cli_msg(-1020, "%-25s %-10s %-10s %-12s %8s %8s", "IP address", "Interface", "State", "Since", "Interval", "Timeout"); @@ -1100,7 +1100,7 @@ bfd_show_sessions(struct proto *P) state = (state < 4) ? state : 0; tm_format_time(tbuf, &config->tf_proto, s->last_state_change); - cli_msg(-1020, "%-25I %-10s %-10s %-10s %7t %7t", + cli_msg(-1020, "%-25I %-10s %-10s %-12s %7t %7t", s->addr, ifname, bfd_state_names[state], tbuf, tx_int, timeout); } HASH_WALK_END; |