From owner-svn-src-head@FreeBSD.ORG Mon Nov 22 22:55:43 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63595106566B; Mon, 22 Nov 2010 22:55:43 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 51B378FC13; Mon, 22 Nov 2010 22:55:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oAMMth0o008969; Mon, 22 Nov 2010 22:55:43 GMT (envelope-from gnn@svn.freebsd.org) Received: (from gnn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oAMMth2u008967; Mon, 22 Nov 2010 22:55:43 GMT (envelope-from gnn@svn.freebsd.org) Message-Id: <201011222255.oAMMth2u008967@svn.freebsd.org> From: "George V. Neville-Neil" Date: Mon, 22 Nov 2010 22:55:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r215724 - head/usr.bin/netstat X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 22:55:43 -0000 Author: gnn Date: Mon Nov 22 22:55:43 2010 New Revision: 215724 URL: http://svn.freebsd.org/changeset/base/215724 Log: Restore the (state) and \n printout when not using -T. Pointed out by: brucec@ MFC after: 3 weeks Modified: head/usr.bin/netstat/inet.c Modified: head/usr.bin/netstat/inet.c ============================================================================== --- head/usr.bin/netstat/inet.c Mon Nov 22 22:41:43 2010 (r215723) +++ head/usr.bin/netstat/inet.c Mon Nov 22 22:55:43 2010 (r215724) @@ -428,13 +428,14 @@ protopr(u_long off, const char *name, in "2msl", "delack", "rcvtime", "(state)"); } - if (!xflag && !Tflag) + if (!xflag && !Tflag) { printf((Aflag && !Wflag) ? "%-5.5s %-6.6s %-6.6s %-18.18s %-18.18s" : "%-5.5s %-6.6s %-6.6s %-22.22s %-22.22s", "Proto", "Recv-Q", "Send-Q", "Local Address", "Foreign Address"); - + printf("(state)\n"); + } first = 0; } if (Lflag && so->so_qlimit == 0)