Przeglądaj źródła

eth_ntoa and warnings fixups

tags/v0.9.3
Marty Connor 18 lat temu
rodzic
commit
d4b060be3b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      src/drivers/net/mtd80x.c

+ 2
- 1
src/drivers/net/mtd80x.c Wyświetl plik

@@ -29,6 +29,7 @@
29 29
 #include "nic.h"
30 30
 /* to get the PCI support functions, if this is a PCI NIC */
31 31
 #include <gpxe/pci.h>
32
+#include <gpxe/ethernet.h>
32 33
 
33 34
 /* Condensed operations for readability. */
34 35
 #define virt_to_le32desc(addr)  cpu_to_le32(virt_to_bus(addr))
@@ -691,7 +692,7 @@ static int mtd_probe ( struct nic *nic, struct pci_device *pci ) {
691 692
         return 0;
692 693
     }
693 694
 
694
-    /*    DBG ( "%s: ioaddr %#hX, addr %!\n",mtdx.nic_name, mtdx.ioaddr, nic->node_addr ); */
695
+    DBG ( "%s: ioaddr %4.4x MAC %s\n", mtdx.nic_name, mtdx.ioaddr, eth_ntoa ( nic->node_addr ) );
695 696
 
696 697
     /* Reset the chip to erase previous misconfiguration. */
697 698
     outl(0x00000001, mtdx.ioaddr + BCR);

Ładowanie…
Anuluj
Zapisz