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
 /* to get the PCI support functions, if this is a PCI NIC */
50
 /* to get the PCI support functions, if this is a PCI NIC */
51
 #include <gpxe/pci.h>
51
 #include <gpxe/pci.h>
52
 /* Include timer support functions */
52
 /* Include timer support functions */
53
+#include <gpxe/ethernet.h>
53
 #include "timer.h"
54
 #include "timer.h"
54
 #include "mii.h"
55
 #include "mii.h"
55
 
56
 
1304
 		get_random_bytes(&dev->dev_addr[3], 3);
1305
 		get_random_bytes(&dev->dev_addr[3], 3);
1305
 	}
1306
 	}
1306
 #endif
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
  	/* disable WOL */
1311
  	/* disable WOL */
1310
 	writel(0, base + NvRegWakeUpFlags);
1312
 	writel(0, base + NvRegWakeUpFlags);

Loading…
Cancel
Save