Sfoglia il codice sorgente

eth_ntoa cleanup

tags/v0.9.3
Marty Connor 18 anni fa
parent
commit
a02dccdafa
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3
    4
      src/drivers/net/smc9000.c

+ 3
- 4
src/drivers/net/smc9000.c Vedi File

@@ -35,6 +35,7 @@
35 35
 #define PRINTK2(args...)
36 36
 #endif
37 37
 
38
+#include <gpxe/ethernet.h>
38 39
 #include "etherboot.h"
39 40
 #include "nic.h"
40 41
 #include "isa.h"
@@ -899,10 +900,8 @@ static int smc9000_probe ( struct nic *nic, struct isa_device *isa ) {
899 900
    printf("%s rev:%d I/O port:%hX Interface:%s RAM:%d bytes \n",
900 901
 	  version_string, revision & 0xF,
901 902
 	  nic->ioaddr, if_string, memory );
902
-   /*
903
-    * Print the Ethernet address
904
-    */
905
-   printf("Ethernet MAC address: %!\n", nic->node_addr);
903
+
904
+   DBG ( "Ethernet MAC address: %s\n", eth_ntoa ( nic->node_addr ) );
906 905
 
907 906
    SMC_SELECT_BANK(nic->ioaddr, 0);
908 907
 

Loading…
Annulla
Salva