summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2011-01-24 10:54:09 +0000
committerrwatson <rwatson@FreeBSD.org>2011-01-24 10:54:09 +0000
commit04c7cf2af2e29199942fa596ca1e4872a5896be9 (patch)
tree706b50dac14957d8ec75585750e6893706905881 /usr.bin/netstat
parent81b17619eb6d87dccc3cf0474bdf2c27b6f3f690 (diff)
downloadFreeBSD-src-04c7cf2af2e29199942fa596ca1e4872a5896be9.zip
FreeBSD-src-04c7cf2af2e29199942fa596ca1e4872a5896be9.tar.gz
Fix off-by-one whitespace error in netstat -Q workstream listing.
Reported by: bz MFC after: 3 days Sponsored by: Juniper Networks
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/netisr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/netisr.c b/usr.bin/netstat/netisr.c
index 733a847..58f2902 100644
--- a/usr.bin/netstat/netisr.c
+++ b/usr.bin/netstat/netisr.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2010 Juniper Networks, Inc.
+ * Copyright (c) 2010-2011 Juniper Networks, Inc.
* All rights reserved.
*
* This software was developed by Robert N. M. Watson under contract
@@ -445,11 +445,11 @@ netisr_print_workstream(struct sysctl_netisr_workstream *snwsp)
if (snwp->snw_wsid != snwsp->snws_wsid)
continue;
if (first) {
- printf("%4u", snwsp->snws_wsid);
- printf(" %3u", snwsp->snws_cpu);
+ printf("%4u ", snwsp->snws_wsid);
+ printf("%3u ", snwsp->snws_cpu);
first = 0;
} else
- printf("%4s %3s", "", "");
+ printf("%4s %3s ", "", "");
printf("%2s", "");
printf("%-6s", netisr_proto2name(snwp->snw_proto));
printf(" %5u", snwp->snw_len);
OpenPOWER on IntegriCloud