summaryrefslogtreecommitdiff
path: root/nandtest.c
diff options
context:
space:
mode:
authorJan Weitzel <j.weitzel@phytec.de>2011-11-24 11:57:21 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>2011-12-01 09:54:43 +0200
commit87b4e7b69b4668ad44f927f1885696e481ae99a9 (patch)
tree17f71e8b5d625d6ebc483eb19274bf8dba89795e /nandtest.c
parent4ff3ab5a610fc150ec50bf16b1fb0b0c00e281a2 (diff)
nandtest: set oldstats.failed
if new ecc failed occures oldstats.corrected is updated not oldstats.failed Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@intel.com>
Diffstat (limited to 'nandtest.c')
-rw-r--r--nandtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nandtest.c b/nandtest.c
index dc28d09..db7f427 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -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);