Browse Source

eth_ntoa fixups

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

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

@@ -32,6 +32,7 @@
32 32
 #include "nic.h"
33 33
 #include "mii.h"
34 34
 #include <gpxe/pci.h>
35
+#include <gpxe/ethernet.h>
35 36
 #include "timer.h"
36 37
 #include "string.h"
37 38
 #include "stdint.h"
@@ -386,7 +387,8 @@ static int amd8111e_get_mac_address(struct amd8111e_priv *lp)
386 387
 	 */
387 388
 	for (i = 0; i < ETH_ALEN; i++)
388 389
 		nic->node_addr[i] = readb(mmio + PADR + i);
389
-	printf("Ethernet addr: %!\n", nic->node_addr);
390
+
391
+	DBG ( "Ethernet addr: %s\n", eth_ntoa ( nic->node_addr ) );
390 392
 
391 393
 	return 0;
392 394
 }

Loading…
Cancel
Save