Browse Source

eth_ntoa and warnings fixups

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

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

@@ -50,6 +50,7 @@
50 50
 /* to get the PCI support functions, if this is a PCI NIC */
51 51
 #include <gpxe/pci.h>
52 52
 /* Include timer support functions */
53
+#include <gpxe/ethernet.h>
53 54
 #include "timer.h"
54 55
 #include "mii.h"
55 56
 
@@ -1304,7 +1305,8 @@ static int forcedeth_probe ( struct nic *nic, struct pci_device *pci ) {
1304 1305
 		get_random_bytes(&dev->dev_addr[3], 3);
1305 1306
 	}
1306 1307
 #endif
1307
-	printf("%s: MAC Address %!, ", pci->name, nic->node_addr);
1308
+
1309
+	DBG ( "%s: MAC Address %s\n", pci->name, eth_ntoa ( nic->node_addr ) );
1308 1310
 
1309 1311
  	/* disable WOL */
1310 1312
 	writel(0, base + NvRegWakeUpFlags);

Loading…
Cancel
Save