Browse Source

eth_ntoa and warnings fixups

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

+ 2
- 1
src/drivers/net/dmfe.c View File

42
 #include "nic.h"
42
 #include "nic.h"
43
 /* to get the PCI support functions, if this is a PCI NIC */
43
 /* to get the PCI support functions, if this is a PCI NIC */
44
 #include <gpxe/pci.h>
44
 #include <gpxe/pci.h>
45
+#include <gpxe/ethernet.h>
45
 #include "timer.h"
46
 #include "timer.h"
46
 
47
 
47
 /* #define EDEBUG 1 */
48
 /* #define EDEBUG 1 */
487
 		nic->node_addr[i] = db->srom[20 + i];
488
 		nic->node_addr[i] = db->srom[20 + i];
488
 
489
 
489
 	/* Print out some hardware info */
490
 	/* Print out some hardware info */
490
-	printf("%s: %! at ioaddr %hX\n", pci->name, nic->node_addr, BASE);
491
+	DBG ( "%s: %s at ioaddr %4.4lx\n", pci->name, eth_ntoa ( nic->node_addr ), BASE );
491
 
492
 
492
 	/* Set the card as PCI Bus Master */
493
 	/* Set the card as PCI Bus Master */
493
 	adjust_pci_device(pci);
494
 	adjust_pci_device(pci);

Loading…
Cancel
Save