| diff -aruN a/nandtest.c b/nandtest.c | |
| --- a/nandtest.c 2016-11-16 17:14:33.086196030 -0800 | |
| +++ b/nandtest.c 2016-11-16 17:16:03.575351493 -0800 | |
| @@ -109,7 +109,7 @@ | |
| } | |
| 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); |