]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[realtek] Print bad MAC address in debug message when inferring no EEPROM
authorMichael Brown <mcb30@ipxe.org>
Sat, 27 Apr 2013 20:24:10 +0000 (21:24 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sat, 27 Apr 2013 20:24:10 +0000 (21:24 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/realtek.c

index 76fa47bbc3991b7abcf9ff3a0feb991612a97892..011822ecb8895efcc326a3ba63bb445b6888c97b 100644 (file)
@@ -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 );
        }