From: Brian Norris Date: Wed, 3 Nov 2010 08:27:18 +0000 (-0700) Subject: mtd-utils: nanddump: Allow 64-bit lengths X-Git-Tag: v1.4.2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=98aa1a65683efcece1d172a9c2649b5d1d149a19;p=mtd-utils.git 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 Acked-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- diff --git a/nanddump.c b/nanddump.c index 86a71c9..fe29596 100644 --- a/nanddump.c +++ b/nanddump.c @@ -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;