diff options
author | ru <ru@FreeBSD.org> | 2004-04-12 09:44:42 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-04-12 09:44:42 +0000 |
commit | 4db6a5ba580465ff6f49acb7b7d1e384272efb01 (patch) | |
tree | fc5c5101754e86f0784956b2970f3c62cdd8bf18 /usr.bin | |
parent | 7743e85352d8cc442bc06654035aa8c79237bdba (diff) | |
download | FreeBSD-src-4db6a5ba580465ff6f49acb7b7d1e384272efb01.zip FreeBSD-src-4db6a5ba580465ff6f49acb7b7d1e384272efb01.tar.gz |
Fixed alignment of multicast addresses when printing that got
broken in previous revision.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/if.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c index 49a08c7..f66943a 100644 --- a/usr.bin/netstat/if.c +++ b/usr.bin/netstat/if.c @@ -445,7 +445,8 @@ intpr(int _interval, u_long ifnetaddr, void (*pfunc)(char *)) break; #ifdef INET6 case AF_INET6: - printf("%23s %-19.19s(refs: %d)\n", "", + printf("%*s %-19.19s(refs: %d)\n", + Wflag ? 27 : 25, "", inet_ntop(AF_INET6, &msa.in6.sin6_addr, ntop_buf, @@ -465,7 +466,8 @@ intpr(int _interval, u_long ifnetaddr, void (*pfunc)(char *)) break; } if (fmt) - printf("%23s %s\n", "", fmt); + printf("%*s %s\n", + Wflag ? 27 : 25, "", fmt); } } } |