aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/ubicrc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/ubicrc32.c')
-rw-r--r--ubi-utils/ubicrc32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ubi-utils/ubicrc32.c b/ubi-utils/ubicrc32.c
index 73ec595..0ea255d 100644
--- a/ubi-utils/ubicrc32.c
+++ b/ubi-utils/ubicrc32.c
@@ -22,7 +22,6 @@
* Author: Oliver Lohmann
*/
-#define PROGRAM_VERSION "1.0"
#define PROGRAM_NAME "ubicrc32"
#include <stdio.h>
@@ -37,7 +36,7 @@
#define BUFSIZE 4096
-static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION
+static const char doc[] = PROGRAM_NAME " version " VERSION
" - a tool to calculate CRC32 with UBI start value (0xFFFFFFFF)";
static const char optionsstr[] =
@@ -70,7 +69,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 ':':