浏览代码

[realtek] Print bad MAC address in debug message when inferring no EEPROM

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年前
父节点
当前提交
2e54c4b52e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/drivers/net/realtek.c

+ 2
- 1
src/drivers/net/realtek.c 查看文件

@@ -1060,7 +1060,8 @@ static int realtek_probe ( struct pci_device *pci ) {
1060 1060
 	 * hopefully have been programmed by the platform firmware.
1061 1061
 	 */
1062 1062
 	if ( ! is_valid_ether_addr ( netdev->hw_addr ) ) {
1063
-		DBGC ( rtl, "REALTEK %p seems to have no EEPROM\n", rtl );
1063
+		DBGC ( rtl, "REALTEK %p seems to have no EEPROM (MAC %s)\n",
1064
+		       rtl, eth_ntoa ( netdev->hw_addr ) );
1064 1065
 		for ( i = 0 ; i < ETH_ALEN ; i++ )
1065 1066
 			netdev->hw_addr[i] = readb ( rtl->regs + RTL_IDR0 + i );
1066 1067
 	}

正在加载...
取消
保存