diff options
author | Marty Connor | 2006-09-20 02:00:44 +0200 |
---|---|---|
committer | Marty Connor | 2006-09-20 02:00:44 +0200 |
commit | 637411c2ab416e9ba99b6f346f56a63275bdbc81 (patch) | |
tree | 1d56fe98a6a828fad3b23eeebe2b198fbc252c96 /src/drivers/net/cs89x0.c | |
parent | eth_ntoa fixups (diff) | |
download | ipxe-637411c2ab416e9ba99b6f346f56a63275bdbc81.tar.gz ipxe-637411c2ab416e9ba99b6f346f56a63275bdbc81.tar.xz ipxe-637411c2ab416e9ba99b6f346f56a63275bdbc81.zip |
eth_ntoa fixups
Diffstat (limited to 'src/drivers/net/cs89x0.c')
-rw-r--r-- | src/drivers/net/cs89x0.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/net/cs89x0.c b/src/drivers/net/cs89x0.c index 35a9f81c..282e8990 100644 --- a/src/drivers/net/cs89x0.c +++ b/src/drivers/net/cs89x0.c @@ -66,6 +66,7 @@ */ +#include <gpxe/ethernet.h> #include "etherboot.h" #include "nic.h" #include "isa.h" @@ -554,7 +555,9 @@ static int cs89x0_probe ( struct nic *nic, struct isa_device *isa ) { for (i=0; i<ETH_ALEN; i++) { nic->node_addr[i] = ((unsigned char *)eeprom_buff)[i]; } - printf("%!\n", nic->node_addr); + + DBG ( "%s\n", eth_ntoa ( nic->node_addr ) ); + #endif #ifdef EMBEDDED /* Retrieve and print the ethernet address. */ @@ -562,7 +565,8 @@ static int cs89x0_probe ( struct nic *nic, struct isa_device *isa ) { unsigned char MAC_HW_ADDR[6]={MAC_HW_ADDR_DRV}; memcpy(nic->node_addr, MAC_HW_ADDR, 6); } - printf("\n%!\n", nic->node_addr); + + DBG ( "%s\n", eth_ntoa ( nic->node_addr ) ); eth_adapter_cnf = A_CNF_10B_T | A_CNF_MEDIA_10B_T; eth_auto_neg_cnf = EE_AUTO_NEG_ENABLE | IMM_BIT; |