]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: Fixup oob data generation
authorFrank Haverkamp <haver@vnet.ibm.com>
Wed, 26 Sep 2007 11:40:10 +0000 (13:40 +0200)
committerFrank Haverkamp <haver@vnet.ibm.com>
Wed, 26 Sep 2007 11:40:10 +0000 (13:40 +0200)
The filename for the OOB data was wrongly assigned.
OOB data could therefore not be dumped.

Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
ubi-utils/src/nand2bin.c

index 0773a2ba878493498604b0232d86ebc98ecf0a1e..735fc8b39a7bf3ba38dc9d85870a0c3a09c08bcd 100644 (file)
@@ -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 <config.h>
@@ -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=<oob.bin> */
-                               args->output_file = optarg;
+                               args->oob_file = optarg;
                                break;
 
                        case '?': /* help */