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; _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"