zeropad mac address ouput

PR:		bin/25584
Submitted by:	David Xu <davidx@viasoft.com.cn>
Reviewed by:	wollman, billf
This commit is contained in:
Bill Fumerola 2001-03-08 01:52:49 +00:00
parent af1ac47537
commit 5651a03692
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73973

View File

@ -537,7 +537,8 @@ nuke_entry(struct sockaddr_dl *sdl,
void
ether_print(u_char *cp)
{
printf("%x:%x:%x:%x:%x:%x", cp[0], cp[1], cp[2], cp[3], cp[4], cp[5]);
printf("%02x:%02x:%02x:%02x:%02x:%02x", cp[0], cp[1], cp[2], cp[3],
cp[4], cp[5]);
}
int