aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/ubidetach.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/ubidetach.c')
-rw-r--r--ubi-utils/ubidetach.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ubi-utils/ubidetach.c b/ubi-utils/ubidetach.c
index 668f1bd..64b748e 100644
--- a/ubi-utils/ubidetach.c
+++ b/ubi-utils/ubidetach.c
@@ -21,7 +21,6 @@
* Author: Artem Bityutskiy
*/
-#define PROGRAM_VERSION "1.1"
#define PROGRAM_NAME "ubidetach"
#include <stdio.h>
@@ -50,7 +49,7 @@ static struct args args = {
.dev = NULL,
};
-static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION
+static const char doc[] = PROGRAM_NAME " version " VERSION
" - tool to remove UBI devices (detach MTD devices from UBI)";
static const char optionsstr[] =
@@ -113,7 +112,7 @@ static int parse_opt(int argc, char * const argv[])
exit(EXIT_SUCCESS);
case 'V':
- fprintf(stderr, "%s\n", PROGRAM_VERSION);
+ common_print_version();
exit(EXIT_SUCCESS);
case ':':