Skip to contentSkip to conversation

nandtest: set oldstats.failed

PATCH Applied Jan Weitzel 2 participants 2 messages Nov 24, 2011 – Dec 1, 2011 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nandtest: set oldstats.failed

if new ecc failed occures oldstats.corrected is updated not oldstats.failed

---
 nandtest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
nandtest.c +1 -1
index dc28d09..db7f427 100644
@@ -105,7 +105,7 @@ int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf)
 	}
 	if (newstats.failed > oldstats.failed) {
 		printf("\nECC failed at %08x\n", (unsigned) ofs);
-		oldstats.corrected = newstats.corrected;
+		oldstats.failed = newstats.failed;
 	}
 	if (len < meminfo.erasesize)
 		exit(1);
Signature · 1 line
1.7.0.4