summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMichael Brown2013-04-27 22:24:10 +0200
committerMichael Brown2013-04-27 22:24:10 +0200
commit2e54c4b52e347a49df0c08357ece3e326a0b5e09 (patch)
tree826bd25bf0bc5f33c97d727136c185a0b0ec389a /src/drivers
parent[process] Mark process descriptor as static in PERMANENT_PROCESS (diff)
downloadipxe-2e54c4b52e347a49df0c08357ece3e326a0b5e09.tar.gz
ipxe-2e54c4b52e347a49df0c08357ece3e326a0b5e09.tar.xz
ipxe-2e54c4b52e347a49df0c08357ece3e326a0b5e09.zip
[realtek] Print bad MAC address in debug message when inferring no EEPROM
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/realtek.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/net/realtek.c b/src/drivers/net/realtek.c
index 76fa47bbc..011822ecb 100644
--- a/src/drivers/net/realtek.c
+++ b/src/drivers/net/realtek.c
@@ -1060,7 +1060,8 @@ static int realtek_probe ( struct pci_device *pci ) {
* hopefully have been programmed by the platform firmware.
*/
if ( ! is_valid_ether_addr ( netdev->hw_addr ) ) {
- DBGC ( rtl, "REALTEK %p seems to have no EEPROM\n", rtl );
+ DBGC ( rtl, "REALTEK %p seems to have no EEPROM (MAC %s)\n",
+ rtl, eth_ntoa ( netdev->hw_addr ) );
for ( i = 0 ; i < ETH_ALEN ; i++ )
netdev->hw_addr[i] = readb ( rtl->regs + RTL_IDR0 + i );
}