diff options
Diffstat (limited to 'nandtest.c')
-rw-r--r-- | nandtest.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,11 +142,11 @@ int main(int argc, char **argv) if (newstats.corrected > oldstats.corrected) { printf("\nECC corrected at %08x\n", (unsigned) ofs); - newstats.corrected = oldstats.corrected; + oldstats.corrected = newstats.corrected; } if (newstats.failed > oldstats.failed) { printf("\nECC failed at %08x\n", (unsigned) ofs); - newstats.corrected = oldstats.corrected; + oldstats.corrected = newstats.corrected; } if (len < meminfo.erasesize) exit(1); |