summaryrefslogtreecommitdiff
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-23 17:02:41 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-23 17:02:41 +0200
commit048c2f0e8cc1451b1fa48e915e0bb5e124aa9d26 (patch)
tree3942c30d561d3f9ac274b42314ce7ac3c99f840b /proto/ospf/neighbor.c
parent15b0a9229431dc75425c229b2f94e680db49d594 (diff)
OSPF: Fix formatting of 'show ospf neighbors'
The formatting was broken when too short router-id was used.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 112625c8..30e80640 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -857,7 +857,7 @@ ospf_sh_neigh_info(struct ospf_neighbor *n)
pos = "Other";
}
- cli_msg(-1013, "%-1R\t%3u\t%s/%s\t%7t\t%-10s %-1I",
+ cli_msg(-1013, "%-12R\t%3u\t%s/%s\t%6t\t%-10s %I",
n->rid, n->priority, ospf_ns_names[n->state], pos,
tm_remains(n->inactim), ifa->ifname, n->ip);
}