rem: DEBUGOUT("SPI EEPROM Status error\n");
add: HW_DEBUGOUT("SPI EEPROM Status error");
context: em_spi_eeprom_ready(struct em_hw *hw){    uint16_t retry_count = 0;    uint8_t spi_stat_reg;    DEBUGFUNC("em_spi_eeprom_ready");    /* Read "Status Register" repeatedly until the LSB is cleared.  The     * EEPROM will signal that the command has been completed by clearing     * bit 0 of the internal status register.  If it's not cleared within     * 5 milliseconds, then error out.     */    retry_count = 0;    do {        em_shift_out_ee_bits(hw, EEPROM_RDSR_OPCODE_SPI,                                hw->eeprom.opcode_bits);        spi_stat_reg = (uint8_t)em_shift_in_ee_bits(hw, 8);        if (!(spi_stat_reg & EEPROM_STATUS_RDY_SPI))            break;        usec_delay(5);        retry_count += 5;    } while(retry_count < EEPROM_MAX_RETRY_SPI);    /* ATMEL SPI write time could vary from 0-20mSec on 3.3V devices (and     * only 0-5mSec on 5V devices)     */    if(retry_count >= EEPROM_MAX_RETRY_SPI) {        DEBUGOUT("SPI EEPROM Status error\n");        return -E1000_ERR_EEPROM;    }    return E1000_SUCCESS;}