diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-08-09 23:25:04 +0800 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2007-08-09 23:25:04 +0800 |
commit | f8bc09757892bc974baf6f6918e14e5b04975415 (patch) | |
tree | ac58acaef88204ec635e278a5f5d533fa541c5f7 /nandtest.c | |
parent | 015a84d3000402651c50e513d7492900a2cc8ec1 (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.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); |