changeset 781:51c3e571eeb1

Remove debug printf from EEPROM code
author Michael Pavone <pavone@retrodev.com>
date Mon, 20 Jul 2015 23:18:29 -0700
parents fa2c03fcbb88
children c63ed5db68b6
files romdb.c
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }