From: Frank Haverkamp Date: Wed, 26 Sep 2007 11:40:10 +0000 (+0200) Subject: ubi-utils: Fixup oob data generation X-Git-Tag: v1.2.0~142 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6affcbe3a1caa6e3df2feef05252c9cf46522a42;p=mtd-utils.git ubi-utils: Fixup oob data generation The filename for the OOB data was wrongly assigned. OOB data could therefore not be dumped. Signed-off-by: Frank Haverkamp --- diff --git a/ubi-utils/src/nand2bin.c b/ubi-utils/src/nand2bin.c index 0773a2b..735fc8b 100644 --- a/ubi-utils/src/nand2bin.c +++ b/ubi-utils/src/nand2bin.c @@ -21,6 +21,7 @@ * * 1.2 Removed argp because we want to use uClibc. * 1.3 Minor cleanup + * 1.4 Fixed OOB output file */ #include @@ -40,7 +41,7 @@ #include "config.h" #include "nandecc.h" -#define PROGRAM_VERSION "1.3" +#define PROGRAM_VERSION "1.4" #define MAXPATH 1024 #define MIN(x,y) ((x)<(y)?(x):(y)) @@ -140,7 +141,7 @@ parse_opt(int argc, char **argv, struct args *args) break; case 'O': /* --oob= */ - args->output_file = optarg; + args->oob_file = optarg; break; case '?': /* help */