diff options
Diffstat (limited to 'ubi-utils/ubiattach.c')
-rw-r--r-- | ubi-utils/ubiattach.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ubi-utils/ubiattach.c b/ubi-utils/ubiattach.c index 4f18e99..27e7c09 100644 --- a/ubi-utils/ubiattach.c +++ b/ubi-utils/ubiattach.c @@ -21,7 +21,6 @@ * Author: Artem Bityutskiy */ -#define PROGRAM_VERSION "1.1" #define PROGRAM_NAME "ubiattach" #include <stdio.h> @@ -53,7 +52,7 @@ static struct args args = { .dev = NULL, }; -static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION +static const char doc[] = PROGRAM_NAME " version " VERSION " - a tool to attach MTD device to UBI."; static const char optionsstr[] = @@ -129,7 +128,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 ':': |