[PATCH] birdc: wider columns in show protocol output
Simon Ruderich
simon at ruderich.org
Fri Jun 10 11:30:31 CEST 2016
--
Hello,
The show protocol output gets more difficult to read with longer protocol
names. This patch increases the column width to 15 characters.
Regards
Simon
Index: bird-1.6.0/nest/proto.c
===================================================================
--- bird-1.6.0.orig/nest/proto.c
+++ bird-1.6.0/nest/proto.c
@@ -1498,13 +1498,13 @@ proto_cmd_show(struct proto *p, uint ver
/* First protocol - show header */
if (!cnt)
- cli_msg(-2002, "name proto table state since info");
+ cli_msg(-2002, "name proto table state since info");
buf[0] = 0;
if (p->proto->get_status)
p->proto->get_status(p, buf);
tm_format_datetime(tbuf, &config->tf_proto, p->last_state_change);
- cli_msg(-1002, "%-8s %-8s %-8s %-5s %-10s %s",
+ cli_msg(-1002, "%-15s %-8s %-8s %-5s %-10s %s",
p->name,
p->proto->name,
p->table->name,
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160610/12742043/attachment.asc>
More information about the Bird-users
mailing list