Browse Source

[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 years ago
parent
commit
2e54c4b52e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/drivers/net/realtek.c

+ 2
- 1
src/drivers/net/realtek.c View File

1060
 	 * hopefully have been programmed by the platform firmware.
1060
 	 * hopefully have been programmed by the platform firmware.
1061
 	 */
1061
 	 */
1062
 	if ( ! is_valid_ether_addr ( netdev->hw_addr ) ) {
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
 		for ( i = 0 ; i < ETH_ALEN ; i++ )
1065
 		for ( i = 0 ; i < ETH_ALEN ; i++ )
1065
 			netdev->hw_addr[i] = readb ( rtl->regs + RTL_IDR0 + i );
1066
 			netdev->hw_addr[i] = readb ( rtl->regs + RTL_IDR0 + i );
1066
 	}
1067
 	}

Loading…
Cancel
Save