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:
dg 1994-08-05 12:38:06 +00:00
parent f25724c99e
commit d2ff996240

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)