Browse Source

eth_ntoa and warnings fixups

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

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

29
 #include "nic.h"
29
 #include "nic.h"
30
 /* to get the PCI support functions, if this is a PCI NIC */
30
 /* to get the PCI support functions, if this is a PCI NIC */
31
 #include <gpxe/pci.h>
31
 #include <gpxe/pci.h>
32
+#include <gpxe/ethernet.h>
32
 
33
 
33
 /* Condensed operations for readability. */
34
 /* Condensed operations for readability. */
34
 #define virt_to_le32desc(addr)  cpu_to_le32(virt_to_bus(addr))
35
 #define virt_to_le32desc(addr)  cpu_to_le32(virt_to_bus(addr))
691
         return 0;
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
     /* Reset the chip to erase previous misconfiguration. */
697
     /* Reset the chip to erase previous misconfiguration. */
697
     outl(0x00000001, mtdx.ioaddr + BCR);
698
     outl(0x00000001, mtdx.ioaddr + BCR);

Loading…
Cancel
Save