aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nandtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nandtest.c b/nandtest.c
index 254d41f..f0cbf85 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -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);