summaryrefslogtreecommitdiff
path: root/nandtest.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-08-09 23:25:04 +0800
committerDavid Woodhouse <dwmw2@infradead.org>2007-08-09 23:25:04 +0800
commitf8bc09757892bc974baf6f6918e14e5b04975415 (patch)
treeac58acaef88204ec635e278a5f5d533fa541c5f7 /nandtest.c
parent015a84d3000402651c50e513d7492900a2cc8ec1 (diff)
Fix repeated warning about ECC correction, in nandtest
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'nandtest.c')
-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);