From 6329ff7f12f6dc0c3c6deb29860544317e7b7a44 Mon Sep 17 00:00:00 2001 From: Alkorin Date: Wed, 4 Mar 2015 15:26:15 +0100 Subject: [PATCH] Fix size of printed numbers --- cli/src/com_ports.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/com_ports.c b/cli/src/com_ports.c index fc49772..b82cf58 100644 --- a/cli/src/com_ports.c +++ b/cli/src/com_ports.c @@ -91,9 +91,9 @@ int do_ports_statistics_show (int argc, const char **argv UNUSED, struct ngadmin goto end; } - printf("Port\tReceived\tSent\tCRC errors\n"); + printf("Port Received Sent CRC errors\n"); for (i = 0; i < sa->ports; i++) - printf("% 4i%12llu%12llu%14llu\n", i + 1, ps[i].recv, ps[i].sent, ps[i].crc); + printf("% 4i%21llu%21llu%21llu\n", i + 1, ps[i].recv, ps[i].sent, ps[i].crc); end: free(ps); -- 2.39.2