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
 #include "nic.h"
32
 #include "nic.h"
33
 #include "mii.h"
33
 #include "mii.h"
34
 #include <gpxe/pci.h>
34
 #include <gpxe/pci.h>
35
+#include <gpxe/ethernet.h>
35
 #include "timer.h"
36
 #include "timer.h"
36
 #include "string.h"
37
 #include "string.h"
37
 #include "stdint.h"
38
 #include "stdint.h"
386
 	 */
387
 	 */
387
 	for (i = 0; i < ETH_ALEN; i++)
388
 	for (i = 0; i < ETH_ALEN; i++)
388
 		nic->node_addr[i] = readb(mmio + PADR + i);
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
 	return 0;
393
 	return 0;
392
 }
394
 }

Loading…
Cancel
Save