]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: nanddump: Allow 64-bit lengths
authorBrian Norris <computersforpeace@gmail.com>
Wed, 3 Nov 2010 08:27:18 +0000 (01:27 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 13 Nov 2010 11:38:47 +0000 (13:38 +0200)
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>
nanddump.c

index 86a71c910b4478de12e5274a1e92aaee91360b10..fe2959607055d6e6d4a6cf178f3b2ac11f365fdf 100644 (file)
@@ -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;