linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [MTD] nandtest.c: fix --keep argument
@ 2010-02-25 13:58 Radoslav Kolev
  2010-03-31 13:58 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Radoslav Kolev @ 2010-02-25 13:58 UTC (permalink / raw)
  To: linux-mtd

[PATCH] [MTD] nandtest.c: fix --keep argument

When called with the --keep argument nandtest is supposed to restore the
original content after testing, but currently it doesn't. The patch
below fixes the problem.

Signed-off-by: Radoslav Kolev <radoslav.kolev@rnd.bg>

--- mtd-utils/nandtest.c	2010-02-25 11:44:59.000000000 +0200
+++ mtd-utils-patched/nandtest.c	2010-02-25 15:48:48.000000000 +0200
@@ -259,7 +259,7 @@
 				printf("\r%08x: reading... ", (unsigned)test_ofs);
 				fflush(stdout);
 
-				len = pread(fd, rbuf, meminfo.erasesize, test_ofs);
+				len = pread(fd, kbuf, meminfo.erasesize, test_ofs);
 				if (len < meminfo.erasesize) {
 					printf("\n");
 					if (len)

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

end of thread, other threads:[~2010-03-31 14:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25 13:58 [PATCH] [MTD] nandtest.c: fix --keep argument Radoslav Kolev
2010-03-31 13:58 ` 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).