aboutsummaryrefslogtreecommitdiff
path: root/nandtest.c
diff options
context:
space:
mode:
authorRadoslav Kolev <radoslav.kolev@rnd.bg>2010-02-25 15:58:10 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-03-31 16:57:46 +0300
commit94fc0263667926cfad7647c1054b4473cc92ecee (patch)
treefbf1eded5d44c836116f8cf5a613cd0241fca426 /nandtest.c
parentfcf4d8f72676fa0c89d0dc3a69109d8f95018d22 (diff)
nandtest: 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> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'nandtest.c')
-rw-r--r--nandtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nandtest.c b/nandtest.c
index 7613a52..e31e28a 100644
--- a/nandtest.c
+++ b/nandtest.c
@@ -259,7 +259,7 @@ int main(int argc, char **argv)
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)