diff options
author | Radoslav Kolev <radoslav.kolev@rnd.bg> | 2010-02-25 15:58:10 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-03-31 16:57:46 +0300 |
commit | 94fc0263667926cfad7647c1054b4473cc92ecee (patch) | |
tree | fbf1eded5d44c836116f8cf5a613cd0241fca426 /nandtest.c | |
parent | fcf4d8f72676fa0c89d0dc3a69109d8f95018d22 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |