linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nandtest: set oldstats.failed
@ 2011-11-24 10:57 Jan Weitzel
  2011-12-01  7:56 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Weitzel @ 2011-11-24 10:57 UTC (permalink / raw)
  To: linux-mtd; +Cc: Jan Weitzel

if new ecc failed occures oldstats.corrected is updated not oldstats.failed

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
---
 nandtest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/nandtest.c b/nandtest.c
index dc28d09..db7f427 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -105,7 +105,7 @@ int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf)
 	}
 	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);
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nandtest: set oldstats.failed
  2011-11-24 10:57 [PATCH] nandtest: set oldstats.failed Jan Weitzel
@ 2011-12-01  7:56 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-12-01  7:56 UTC (permalink / raw)
  To: Jan Weitzel; +Cc: linux-mtd

On Thu, 2011-11-24 at 11:57 +0100, Jan Weitzel wrote:
> if new ecc failed occures oldstats.corrected is updated not oldstats.failed
> 
> Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>

Pushed to mtd-utils.git, thanks!

Artem.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-01  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24 10:57 [PATCH] nandtest: set oldstats.failed Jan Weitzel
2011-12-01  7:56 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).