# HG changeset patch # User Michael Pavone # Date 1437459509 25200 # Node ID 51c3e571eeb17a4cb8137c1361ea01c94790470d # Parent fa2c03fcbb88ac2250a4764cf90a22a769db486e Remove debug printf from EEPROM code diff -r fa2c03fcbb88 -r 51c3e571eeb1 romdb.c --- a/romdb.c Mon Jul 20 23:11:42 2015 -0700 +++ b/romdb.c Mon Jul 20 23:18:29 2015 -0700 @@ -128,7 +128,6 @@ case I2C_ADDRESS_ACK: state->state = I2C_WRITE; state->address &= state->size-1; - printf("EEPROM address is %X\n", state->address); state->counter = 8; break; case I2C_READ: @@ -321,13 +320,10 @@ fprintf(stderr, "Could not find EEPROM map for address %X\n", address); exit(1); } - printf("EEPROM word write: %X - %X\n", address, value); if (map->scl_mask) { set_scl(&gen->eeprom, (value & map->scl_mask) != 0); - printf("scl: %d, state: %s, counter: %d, latch: %X\n", (value & map->scl_mask) != 0, i2c_states[gen->eeprom.state], gen->eeprom.counter, gen->eeprom.latch); } if (map->sda_write_mask) { - printf("sda: %d\n", (value & map->sda_write_mask) != 0); set_host_sda(&gen->eeprom, (value & map->sda_write_mask) != 0); } return context; @@ -350,13 +346,10 @@ expanded = value << 8; mask = 0xFF00; } - printf("EEPROM byte write: %X - %X (using mask %X and expanded val %X)\n", address, value, mask, expanded); if (map->scl_mask & mask) { set_scl(&gen->eeprom, (expanded & map->scl_mask) != 0); - printf("scl: %d, state: %s, counter: %d, latch: %X\n", (expanded & map->scl_mask) != 0, i2c_states[gen->eeprom.state], gen->eeprom.counter, gen->eeprom.latch); } if (map->sda_write_mask & mask) { - printf("sda: %d\n", (expanded & map->sda_write_mask) != 0); set_host_sda(&gen->eeprom, (expanded & map->sda_write_mask) != 0); } return context; @@ -374,7 +367,6 @@ if (map->sda_read_bit < 16) { ret = get_sda(&gen->eeprom) << map->sda_read_bit; } - printf("EEPROM word read: %X - %X\n", address, ret); return ret; } @@ -391,7 +383,6 @@ if (bit < 8) { ret = get_sda(&gen->eeprom) << bit; } - printf("EEPROM byte read: %X - %X\n", address, ret); return ret; }