nandtest.c: fix --keep argument
PATCH 1/1 nandtest.c: fix --keep argument
[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 <[email protected]>
nandtest.c +1 -1
@@ -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)
Artem Bityutskiy
AppliedQuoted 7 lines · Radoslav Kolev
[PATCH] [MTD]
nandtest.c: fix --keep argumentWhen 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 <[email protected]>
Pushed to mtd-utils.git, thank you!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)