From: Radoslav Kolev <radoslav.kolev@rnd.bg>
To: linux-mtd@lists.infradead.org
Subject: [PATCH] [MTD] nandtest.c: fix --keep argument
Date: Thu, 25 Feb 2010 15:58:10 +0200 [thread overview]
Message-ID: <1267106290.8549.91.camel@rado-desktop> (raw)
[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)
next reply other threads:[~2010-02-25 13:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 13:58 Radoslav Kolev [this message]
2010-03-31 13:58 ` [PATCH] [MTD] nandtest.c: fix --keep argument Artem Bityutskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1267106290.8549.91.camel@rado-desktop \
--to=radoslav.kolev@rnd.bg \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.