From 6affcbe3a1caa6e3df2feef05252c9cf46522a42 Mon Sep 17 00:00:00 2001 From: Frank Haverkamp Date: Wed, 26 Sep 2007 13:40:10 +0200 Subject: 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 --- ubi-utils/src/nand2bin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ubi-utils') 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 */ -- cgit v1.2.3