From 5cf208c2ec9639bbfba32a1b702d004d7a45f954 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 10 Jun 2016 09:08:33 -0700 Subject: Fix trailing whitespace bug in netstat. Spotted while trying to diff netstat -nt against toybox netstat -nt. --- toys/pending/netstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toys/pending/netstat.c b/toys/pending/netstat.c index f8d622e2..c77f49f5 100644 --- a/toys/pending/netstat.c +++ b/toys/pending/netstat.c @@ -147,9 +147,9 @@ static void display_data(unsigned rport, char *label, xprintf("%3s %6d %6d ", label, rxq, txq); xprintf((toys.optflags & FLAG_W) ? "%-51.51s %-51.51s " : "%-23.23s %-23.23s " , lip, rip); - xprintf("%-11s ", ss_state); - if ((toys.optflags & FLAG_e)) xprintf("%-10s %-11ld ", user, inode); - if ((toys.optflags & FLAG_p)) xprintf("%s", get_pid_name(inode)); + xprintf("%-11s", ss_state); + if ((toys.optflags & FLAG_e)) xprintf(" %-10s %-11ld", user, inode); + if ((toys.optflags & FLAG_p)) xprintf(" %s", get_pid_name(inode)); xputc('\n'); } -- cgit v1.2.3