Date: Wed, 25 Feb 2015 17:06:27 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279288 - head/usr.bin/netstat Message-ID: <201502251706.t1PH6Rac011518@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502251706.t1PH6Rac011518>