From owner-svn-src-stable-8@FreeBSD.ORG Wed Apr 21 05:39:52 2010 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 095F6106567B; Wed, 21 Apr 2010 05:39:52 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ECD528FC24; Wed, 21 Apr 2010 05:39:51 +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 o3L5dpIh061185; Wed, 21 Apr 2010 05:39:51 GMT (envelope-from maxim@svn.freebsd.org) Received: (from maxim@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o3L5dpL4061183; Wed, 21 Apr 2010 05:39:51 GMT (envelope-from maxim@svn.freebsd.org) Message-Id: <201004210539.o3L5dpL4061183@svn.freebsd.org> From: Maxim Konovalov Date: Wed, 21 Apr 2010 05:39:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r206983 - stable/8/usr.bin/sockstat X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2010 05:39:52 -0000 Author: maxim Date: Wed Apr 21 05:39:51 2010 New Revision: 206983 URL: http://svn.freebsd.org/changeset/base/206983 Log: MFC r205874: make sockstat -6 output more readable for long ipv6 addresses. Modified: stable/8/usr.bin/sockstat/sockstat.c Directory Properties: stable/8/usr.bin/sockstat/ (props changed) Modified: stable/8/usr.bin/sockstat/sockstat.c ============================================================================== --- stable/8/usr.bin/sockstat/sockstat.c Wed Apr 21 05:38:16 2010 (r206982) +++ stable/8/usr.bin/sockstat/sockstat.c Wed Apr 21 05:39:51 2010 (r206983) @@ -621,6 +621,8 @@ display(void) case AF_INET: case AF_INET6: pos += printaddr(s->family, &s->laddr); + if (s->family == AF_INET6 && pos >= 58) + pos += xprintf(" "); while (pos < 58) pos += xprintf(" "); pos += printaddr(s->family, &s->faddr);