Quellcode durchsuchen

eth_ntoa and warnings fixups

tags/v0.9.3
Marty Connor vor 19 Jahren
Ursprung
Commit
3ffeffebb2
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2
    1
      src/drivers/net/dmfe.c

+ 2
- 1
src/drivers/net/dmfe.c Datei anzeigen

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);

Laden…
Abbrechen
Speichern