summaryrefslogtreecommitdiff
path: root/ubi-utils
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@vnet.ibm.com>2007-09-26 13:40:10 +0200
committerFrank Haverkamp <haver@vnet.ibm.com>2007-09-26 13:40:10 +0200
commit6affcbe3a1caa6e3df2feef05252c9cf46522a42 (patch)
tree7d599fd396a29cfee037364287d2c9f055cb4b64 /ubi-utils
parent8679b2803109d007a3f429c04a8300ba34f2473e (diff)
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 <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils')
-rw-r--r--ubi-utils/src/nand2bin.c5
1 files changed, 3 insertions, 2 deletions
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 <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 */