svn commit: r279288 - head/usr.bin/netstat

Marcel Moolenaar marcel at FreeBSD.org
Wed Feb 25 17:06:28 UTC 2015


Author: marcel
Date: Wed Feb 25 17:06:27 2015
New Revision: 279288
URL: https://svnweb.freebsd.org/changeset/base/279288

Log:
  Fix "netstat -hdw 1" output.
  
  Reported by: np@

Modified:
  head/usr.bin/netstat/if.c

Modified: head/usr.bin/netstat/if.c
==============================================================================
--- head/usr.bin/netstat/if.c	Wed Feb 25 16:44:40 2015	(r279287)
+++ head/usr.bin/netstat/if.c	Wed Feb 25 17:06:27 2015	(r279288)
@@ -244,10 +244,6 @@ show_stat(const char *fmt, int width, co
 		/* Format in human readable form. */
 		humanize_number(buf, sizeof(buf), (int64_t)value, "",
 		    HN_AUTOSCALE, HN_NOSPACE | HN_DECIMAL);
-		snprintf(newfmt, sizeof(newfmt), "%s%%%ds%s",
-		    lsep, width, rsep);
-		xo_emit(newfmt, buf);
-		xo_attr("value", "%lu", value);
 		maybe_pad(lsep);
 		snprintf(newfmt, sizeof(newfmt), "{:%s/%%%ds}", name, width);
 		xo_emit(newfmt, buf);


More information about the svn-src-head mailing list