txtinfo: minor formatting in /gat
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 3 Dec 2015 14:23:51 +0000 (15:23 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 3 Dec 2015 15:43:34 +0000 (16:43 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 8fcb186..9ab75db 100644 (file)
@@ -373,9 +373,17 @@ void ipc_print_gateways(struct autobuf *abuf) {
           v6type = NONE;
         }
 
-        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,
-            gw->external_prefix.prefix_len == 0 ? NONE : olsr_ip_prefix_to_string(&gw->external_prefix));
+        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, //
+            !gw->external_prefix.prefix_len ? NONE : olsr_ip_prefix_to_string(&gw->external_prefix));
       }OLSR_FOR_ALL_GATEWAY_ENTRIES_END (gw)
 #endif /* __linux__ */
 }