diff options
author | ume <ume@FreeBSD.org> | 2015-11-06 14:35:22 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2015-11-06 14:35:22 +0000 |
commit | da474a11ae38947c9477277315e71a990bda7c3f (patch) | |
tree | cf2368caba3f42e7ffec5fa58454a88f70d89501 /usr.bin/netstat | |
parent | a06dff3f647b2e4cb7eb6b6fcaa2d2099d2cd377 (diff) | |
download | FreeBSD-src-da474a11ae38947c9477277315e71a990bda7c3f.zip FreeBSD-src-da474a11ae38947c9477277315e71a990bda7c3f.tar.gz |
- Fix alignment for padding link address.
- Trim whitespace of link address.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 6ba5289..b827232 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -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; |