Date: Fri, 6 Nov 2015 14:35:22 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290446 - head/usr.bin/netstat Message-ID: <201511061435.tA6EZMTb037076@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Fri Nov 6 14:35:22 2015 New Revision: 290446 URL: https://svnweb.freebsd.org/changeset/base/290446 Log: - Fix alignment for padding link address. - Trim whitespace of link address. Modified: head/usr.bin/netstat/if.c Modified: head/usr.bin/netstat/if.c ============================================================================== --- head/usr.bin/netstat/if.c Fri Nov 6 14:29:25 2015 (r290445) +++ head/usr.bin/netstat/if.c Fri Nov 6 14:35:22 2015 (r290446) @@ -403,9 +403,9 @@ intpr(void (*pfunc)(char *), int af) if (sdl->sdl_nlen == 0 && sdl->sdl_alen == 0 && sdl->sdl_slen == 0) - xo_emit("{P: }"); + xo_emit("{P:/%*s} ", addr_len, ""); else - xo_emit("{:address/%-*.*s} ", addr_len, + xo_emit("{t:address/%-*.*s} ", addr_len, addr_len, routename(ifa->ifa_addr, 1)); link = true; break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511061435.tA6EZMTb037076>