Changed output formatting to 0 pad hex bytes if necessary. This makes

the output consistent with traditional representations of ethernet
addresses. I still don't like the spacing in netstat -i, however.
This commit is contained in:
David Greenman 1994-08-05 12:38:06 +00:00
parent 9671146f8b
commit 541f256275
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1861

View File

@ -189,7 +189,7 @@ intpr(interval, ifnetaddr)
cp = sa->sa_data;
hexprint:
while (--n >= 0)
m += printf("%x%c", *cp++ & 0xff,
m += printf("%02x%c", *cp++ & 0xff,
n > 0 ? '.' : ' ');
m = 28 - m;
while (m-- > 0)