mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
change MAC address printout to DBG using eth_ntoa (temporary legacy support)
This commit is contained in:
@@ -105,6 +105,7 @@
|
|||||||
|
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
#include "nic.h"
|
#include "nic.h"
|
||||||
|
#include <gpxe/ethernet.h>
|
||||||
#include <gpxe/pci.h>
|
#include <gpxe/pci.h>
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
|
|
||||||
@@ -635,7 +636,8 @@ static int eepro100_probe ( struct nic *nic, struct pci_device *p ) {
|
|||||||
for (i=0;i<ETH_ALEN;i++) {
|
for (i=0;i<ETH_ALEN;i++) {
|
||||||
nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
|
nic->node_addr[i] = (eeprom[i/2] >> (8*(i&1))) & 0xff;
|
||||||
}
|
}
|
||||||
printf ("Ethernet addr: %!\n", nic->node_addr);
|
|
||||||
|
DBG ("Ethernet addr: %s\n", eth_ntoa ( nic->node_addr ) );
|
||||||
|
|
||||||
if (sum != 0xBABA)
|
if (sum != 0xBABA)
|
||||||
printf("eepro100: Invalid EEPROM checksum %#hX, "
|
printf("eepro100: Invalid EEPROM checksum %#hX, "
|
||||||
|
|||||||
Reference in New Issue
Block a user