Skip to contentSkip to conversation

nandtest.c: fix --keep argument

PATCH Applied Radoslav Kolev 2 participants 2 messages Feb 25, 2010 – Mar 31, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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.

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)
#1 lore raw
Quoted 7 lines · Radoslav Kolev

[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.

Pushed to mtd-utils.git, thank you!

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)