diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-08 15:16:47 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-08 15:16:47 +0100 |
commit | eb95b5ec1a5c3bd4e57f3a134828f8de2875cb43 (patch) | |
tree | ccad68d68297a1af27deadc23d15a97195ddcc4e /nest/proto.c | |
parent | 49c7ef3b21e51ae7d1969baa52b4d8fd29b22eeb (diff) |
Nest: Minor formatting changes
Diffstat (limited to 'nest/proto.c')
-rw-r--r-- | nest/proto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nest/proto.c b/nest/proto.c index a2a2bc7e..d7650517 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -1662,13 +1662,14 @@ proto_cmd_show(struct proto *p, uintptr_t verbose, int cnt) /* First protocol - show header */ if (!cnt) - cli_msg(-2002, "name proto table state since info"); + cli_msg(-2002, "%-10s %-10s %-10s %-6s %-12s %s", + "Name", "Proto", "Table", "State", "Since", "Info"); buf[0] = 0; if (p->proto->get_status) p->proto->get_status(p, buf); tm_format_time(tbuf, &config->tf_proto, p->last_state_change); - cli_msg(-1002, "%-8s %-8s %-8s %-5s %-10s %s", + cli_msg(-1002, "%-10s %-10s %-10s %-6s %-12s %s", p->name, p->proto->name, p->main_channel ? p->main_channel->table->name : "---", |