From: Ferry Huberts Date: Mon, 24 Nov 2014 14:31:18 +0000 (+0100) Subject: sgw: uplink and downlink fields can be 9 chars wide in the output file X-Git-Tag: v0.6.8~12 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=48e7a6656fffba009e9a5ffde8994287133dc9c1;ds=sidebyside sgw: uplink and downlink fields can be 9 chars wide in the output file Signed-off-by: Ferry Huberts --- 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;