Browse Source

eth_ntoa fixups

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

+ 6
- 2
src/drivers/net/cs89x0.c View File

66
 
66
 
67
   */
67
   */
68
 
68
 
69
+#include <gpxe/ethernet.h>
69
 #include "etherboot.h"
70
 #include "etherboot.h"
70
 #include "nic.h"
71
 #include "nic.h"
71
 #include "isa.h"
72
 #include "isa.h"
554
 	for (i=0; i<ETH_ALEN; i++) {
555
 	for (i=0; i<ETH_ALEN; i++) {
555
 		nic->node_addr[i] = ((unsigned char *)eeprom_buff)[i];
556
 		nic->node_addr[i] = ((unsigned char *)eeprom_buff)[i];
556
 	}
557
 	}
557
-	printf("%!\n", nic->node_addr);
558
+
559
+	DBG ( "%s\n", eth_ntoa ( nic->node_addr ) );
560
+
558
 #endif
561
 #endif
559
 #ifdef EMBEDDED
562
 #ifdef EMBEDDED
560
 	/* Retrieve and print the ethernet address. */
563
 	/* Retrieve and print the ethernet address. */
562
 		unsigned char MAC_HW_ADDR[6]={MAC_HW_ADDR_DRV};
565
 		unsigned char MAC_HW_ADDR[6]={MAC_HW_ADDR_DRV};
563
 		memcpy(nic->node_addr, MAC_HW_ADDR, 6);
566
 		memcpy(nic->node_addr, MAC_HW_ADDR, 6);
564
 	}
567
 	}
565
-	printf("\n%!\n", nic->node_addr);
568
+
569
+	DBG ( "%s\n", eth_ntoa ( nic->node_addr ) );
566
 	
570
 	
567
 	eth_adapter_cnf = A_CNF_10B_T | A_CNF_MEDIA_10B_T;
571
 	eth_adapter_cnf = A_CNF_10B_T | A_CNF_MEDIA_10B_T;
568
 	eth_auto_neg_cnf = EE_AUTO_NEG_ENABLE | IMM_BIT;
572
 	eth_auto_neg_cnf = EE_AUTO_NEG_ENABLE | IMM_BIT;

Loading…
Cancel
Save