summaryrefslogtreecommitdiff
path: root/ubi-utils/src/nand2bin.c
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@vnet.ibm.com>2006-12-11 14:34:23 +0100
committerFrank Haverkamp <haver@vnet.ibm.com>2006-12-11 14:34:23 +0100
commitda59698ccf81a1df3a250edb81a91f1b8a3decf0 (patch)
tree78354ad7f96128d344ef0bba9e303d424a9f4efa /ubi-utils/src/nand2bin.c
parent1fea122705bfecebf38e57774762663b7cd913d2 (diff)
[MTD] UBI Utils: Tools should have individual version numbers
The tools had a mixture of different version numbers. This is changed now. The internal change to move to remove glibc dependencies should be reflected by an increase of the version number, so that we can react if trouble is seen with the new code. Singed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/src/nand2bin.c')
-rw-r--r--ubi-utils/src/nand2bin.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/ubi-utils/src/nand2bin.c b/ubi-utils/src/nand2bin.c
index a9b68bd..34cce40 100644
--- a/ubi-utils/src/nand2bin.c
+++ b/ubi-utils/src/nand2bin.c
@@ -18,7 +18,10 @@
* Author: Frank Haverkamp
*
* An utility to decompose NAND images and strip OOB off. Not yet finished ...
+ *
+ * 1.2 Removed argp because we want to use uClibc.
*/
+
#include <config.h>
#include <errno.h>
#include <fcntl.h>
@@ -36,6 +39,8 @@
#include "config.h"
#include "nandecc.h"
+#define PROGRAM_VERSION "1.2"
+
#define MAXPATH 1024
#define MIN(x,y) ((x)<(y)?(x):(y))
@@ -60,7 +65,7 @@ static struct args myargs = {
.options = NULL,
};
-static char doc[] = "\nVersion: " PACKAGE_VERSION "\n\t"
+static char doc[] = "\nVersion: " PROGRAM_VERSION "\n\t"
BUILD_OS" "BUILD_CPU" at "__DATE__" "__TIME__"\n"
"\nSplit data and OOB.\n";
@@ -147,12 +152,13 @@ parse_opt(int argc, char **argv, struct args *args)
printf("Usage: nand2bin [OPTION...] input.mif\n");
printf("%s", doc);
printf("%s", optionsstr);
- printf("\nReport bugs to %s\n", PACKAGE_BUGREPORT);
+ printf("\nReport bugs to %s\n",
+ PACKAGE_BUGREPORT);
exit(0);
break;
case 'V':
- printf("%s\n", PACKAGE_VERSION);
+ printf("%s\n", PROGRAM_VERSION);
exit(0);
break;