- fixed: mac addresses used to be printed as an 8-digit hex number.

Now I AND each byte with 0xff before printing.
This commit is contained in:
Bryce Denney 2001-06-25 07:12:45 +00:00
parent fc63504252
commit 9da6c1f199
1 changed files with 6 additions and 6 deletions

View File

@ -1656,12 +1656,12 @@ bx_write_ne2k_options (FILE *fp, bx_ne2k_options *opt)
fprintf (fp, "ne2k: ioaddr=0x%x, irq=%d, mac=%02x:%02x:%02x:%02x:%02x:%02x, ethmod=%s, ethdev=%s\n",
opt->Oioaddr->get (),
opt->Oirq->get (),
(unsigned int)ptr[0],
(unsigned int)ptr[1],
(unsigned int)ptr[2],
(unsigned int)ptr[3],
(unsigned int)ptr[4],
(unsigned int)ptr[5],
(unsigned int)(0xff & ptr[0]),
(unsigned int)(0xff & ptr[1]),
(unsigned int)(0xff & ptr[2]),
(unsigned int)(0xff & ptr[3]),
(unsigned int)(0xff & ptr[4]),
(unsigned int)(0xff & ptr[5]),
opt->Oethmod->getptr (),
opt->Oethdev->getptr ());
return 0;