Date: Wed, 4 Nov 2015 19:05:05 +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: r290371 - head/usr.bin/netstat Message-ID: <201511041905.tA4J55WV036081@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Wed Nov 4 19:05:04 2015 New Revision: 290371 URL: https://svnweb.freebsd.org/changeset/base/290371 Log: Fix alignment of AF_LINK address. Modified: head/usr.bin/netstat/if.c Modified: head/usr.bin/netstat/if.c ============================================================================== --- head/usr.bin/netstat/if.c Wed Nov 4 16:59:12 2015 (r290370) +++ head/usr.bin/netstat/if.c Wed Nov 4 19:05:04 2015 (r290371) @@ -391,8 +391,7 @@ intpr(void (*pfunc)(char *), int af) sdl->sdl_slen == 0) xo_emit("{P: }"); else - xo_emit("{:address/%*s}", - 32 - 3 * sdl->sdl_alen, + xo_emit("{:address/%-17.17s} ", 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?201511041905.tA4J55WV036081>