diff options
author | Jan Weitzel <j.weitzel@phytec.de> | 2011-11-24 11:57:21 +0100 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@intel.com> | 2011-12-01 09:54:43 +0200 |
commit | 87b4e7b69b4668ad44f927f1885696e481ae99a9 (patch) | |
tree | 17f71e8b5d625d6ebc483eb19274bf8dba89795e /nandtest.c | |
parent | 4ff3ab5a610fc150ec50bf16b1fb0b0c00e281a2 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |