diff options
author | Brian Norris <computersforpeace@gmail.com> | 2010-11-03 01:27:18 -0700 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-11-13 13:38:47 +0200 |
commit | 98aa1a65683efcece1d172a9c2649b5d1d149a19 (patch) | |
tree | 555b26478a518bccded114b2031d2e11d99ebe28 /nanddump.c | |
parent | 4854c615740a6e73eb4c0fbe4245ddd4a3b40a9c (diff) |
mtd-utils: nanddump: Allow 64-bit lengths
We should allow the dump length to be 64-bit, especially since the value
was read in as a "long long" by strtoll().
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'nanddump.c')
-rw-r--r-- | nanddump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ static bool noecc = false; // don't error correct static bool noskipbad = false; // don't skip bad blocks static bool omitoob = false; // omit oob data static unsigned long long start_addr; // start address -static unsigned long length; // dump length +static unsigned long long length; // dump length static const char *mtddev; // mtd device name static const char *dumpfile; // dump file name static bool omitbad = false; |