ソースを参照

eth_ntoa fixups

tags/v0.9.3
Marty Connor 18年前
コミット
896f871fba
1個のファイルの変更3行の追加2行の削除
  1. 3
    2
      src/drivers/net/3c90x.c

+ 3
- 2
src/drivers/net/3c90x.c ファイルの表示

@@ -40,6 +40,7 @@
40 40
 #include "etherboot.h"
41 41
 #include "nic.h"
42 42
 #include <gpxe/pci.h>
43
+#include <gpxe/ethernet.h>
43 44
 #include "timer.h"
44 45
 
45 46
 static struct nic_operations a3c90x_operations;
@@ -675,7 +676,6 @@ a3c90x_poll(struct nic *nic, int retrieve)
675 676
  ***/
676 677
 static void
677 678
 a3c90x_disable ( struct nic *nic __unused ) {
678
-	/* reset and disable merge */
679 679
 	a3c90x_reset();
680 680
 	/* Disable the receiver and transmitter. */
681 681
 	outw(cmdRxDisable, INF_3C90X.IOAddr + regCommandIntStatus_w);
@@ -802,7 +802,8 @@ static int a3c90x_probe ( struct nic *nic, struct pci_device *pci ) {
802 802
     INF_3C90X.HWAddr[3] = eeprom[HWADDR_OFFSET + 1]&0xFF;
803 803
     INF_3C90X.HWAddr[4] = eeprom[HWADDR_OFFSET + 2]>>8;
804 804
     INF_3C90X.HWAddr[5] = eeprom[HWADDR_OFFSET + 2]&0xFF;
805
-    printf("MAC Address = %!\n", INF_3C90X.HWAddr);
805
+
806
+    DBG ( "MAC Address = %s\n", eth_ntoa ( INF_3C90X.HWAddr ) );
806 807
 
807 808
     /** 3C556: Invert MII power **/
808 809
     if (INF_3C90X.is3c556) {

読み込み中…
キャンセル
保存