From 48e7a6656fffba009e9a5ffde8994287133dc9c1 Mon Sep 17 00:00:00 2001 From: Ferry Huberts Date: Mon, 24 Nov 2014 15:31:18 +0100 Subject: [PATCH] sgw: uplink and downlink fields can be 9 chars wide in the output file Signed-off-by: Ferry Huberts --- src/gateway.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gateway.c b/src/gateway.c index e4333f71..ab7bf37a 100644 --- a/src/gateway.c +++ b/src/gateway.c @@ -1959,9 +1959,9 @@ static void printDate(FILE * f) { * @param phase the phase of the change (startup/runtime/shutdown) */ static void writeProgramStatusFile(enum sgw_multi_change_phase phase) { - /* # Orig Prefx Upl Dwn PathC Type Intfc Gw Cost */ - static const char * fmt_header = "%s%-16s %-33s %-8s %-8s %-10s %-16s %-16s %-16s %s\n"; - static const char * fmt_values = "%s%-16s %-33s %-8u %-8u %-10u %-16s %-16s %-16s %llu\n"; + /* # Orig Prefx Upl Dwn PathC Type Intfc Gw Cost */ + static const char * fmt_header = "%s%-16s %-33s %-9s %-9s %-10s %-16s %-16s %-16s %s\n"; + static const char * fmt_values = "%s%-16s %-33s %-9u %-9u %-10u %-16s %-16s %-16s %llu\n"; char * fileName = olsr_cnf->smart_gw_status_file; FILE * fp = NULL; -- 2.20.1