Skip to content

Commit

Permalink
Fix output format for txtinfo/gateways to be in line with the others.
Browse files Browse the repository at this point in the history
  • Loading branch information
soma committed Dec 5, 2010
1 parent 2b33e22 commit 0974a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/txtinfo/src/olsrd_txtinfo.c
Expand Up @@ -562,7 +562,7 @@ ipc_print_gateway(struct autobuf *abuf)
struct lqtextbuffer lqbuf;

// Status IP ETX Hopcount Uplink-Speed Downlink-Speed ipv4/ipv4-nat/- ipv6/- ipv6-prefix/-
abuf_puts(abuf, "Table: Gateways\n Gateway\tETX\tHopcnt\tUplink\tDownlnk\tIPv4\tIPv6\tPrefix\n");
abuf_puts(abuf, "Table: Gateways\nStatus\tGateway IP\tETX\tHopcnt\tUplink\tDownlnk\tIPv4\tIPv6\tPrefix\n");
OLSR_FOR_ALL_GATEWAY_ENTRIES(gw) {
char v4 = '-', v6 = '-';
bool autoV4 = false, autoV6 = false;
Expand Down Expand Up @@ -595,7 +595,7 @@ ipc_print_gateway(struct autobuf *abuf)
v6type = IPV6;
}

abuf_appendf(abuf, "%c%c %s\t%s\t%d\t%u\t%u\t%s\t%s\t%s\n",
abuf_appendf(abuf, "%c%c\t%s\t%s\t%d\t%u\t%u\t%s\t%s\t%s\n",
v4, v6, olsr_ip_to_string(&buf, &gw->originator),
get_linkcost_text(tc->path_cost, true, &lqbuf), tc->hops,
gw->uplink, gw->downlink, v4type, v6type,
Expand Down

0 comments on commit 0974a4d

Please sign in to comment.