summaryrefslogtreecommitdiff
path: root/mkfs.ubifs/mkfs.ubifs.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-06-27 11:27:24 -0700
committerArtem Bityutskiy <dedekind1@gmail.com>2011-06-29 08:42:40 +0300
commit4d1793e25fd6691f8a2407d6d2dfb23809086ef0 (patch)
treeb4b4f89c6f195f57fcb38fc49771ba2865a89451 /mkfs.ubifs/mkfs.ubifs.c
parente1e6889909bb1ffcde894f69efe307ed9a1a28a4 (diff)
mtd-utils: switch more utils to unified versioning
More utilities now use the common VERSION system. For utils that printed a very simple message, we use the new common_print_version() "function." Signed-off-by: Brian Norris <computersforpeace@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
Diffstat (limited to 'mkfs.ubifs/mkfs.ubifs.c')
-rw-r--r--mkfs.ubifs/mkfs.ubifs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index c718818..733a3bb 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -26,8 +26,6 @@
#include <crc32.h>
#include "common.h"
-#define PROGRAM_VERSION "1.5"
-
/* Size (prime number) of hash table for link counting */
#define HASH_TABLE_SIZE 10099
@@ -606,7 +604,7 @@ static int get_options(int argc, char**argv)
verbose = 1;
break;
case 'V':
- printf("Version " PROGRAM_VERSION "\n");
+ common_print_version();
exit(0);
case 'g':
debug_level = strtol(optarg, &endp, 0);