Browse Source

change MAC address printout to DBG using eth_ntoa (temporary legacy support)

tags/v0.9.3
Marty Connor 18 years ago
parent
commit
a998286c8b
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/drivers/net/eepro100.c

+ 3
- 1
src/drivers/net/eepro100.c View File

105
 
105
 
106
 #include "etherboot.h"
106
 #include "etherboot.h"
107
 #include "nic.h"
107
 #include "nic.h"
108
+#include <gpxe/ethernet.h>
108
 #include <gpxe/pci.h>
109
 #include <gpxe/pci.h>
109
 #include "timer.h"
110
 #include "timer.h"
110
 
111
 
635
 	for (i=0;i<ETH_ALEN;i++) {
636
 	for (i=0;i<ETH_ALEN;i++) {
636
 		nic->node_addr[i] =  (eeprom[i/2] >> (8*(i&1))) & 0xff;
637
 		nic->node_addr[i] =  (eeprom[i/2] >> (8*(i&1))) & 0xff;
637
 	}
638
 	}
638
-	printf ("Ethernet addr: %!\n", nic->node_addr);
639
+
640
+	DBG ("Ethernet addr: %s\n", eth_ntoa ( nic->node_addr ) );
639
 
641
 
640
 	if (sum != 0xBABA)
642
 	if (sum != 0xBABA)
641
 		printf("eepro100: Invalid EEPROM checksum %#hX, "
643
 		printf("eepro100: Invalid EEPROM checksum %#hX, "

Loading…
Cancel
Save