summaryrefslogtreecommitdiff
path: root/ubi-utils/ubirsvol.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 /ubi-utils/ubirsvol.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 'ubi-utils/ubirsvol.c')
-rw-r--r--ubi-utils/ubirsvol.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ubi-utils/ubirsvol.c b/ubi-utils/ubirsvol.c
index 65f579c..c469060 100644
--- a/ubi-utils/ubirsvol.c
+++ b/ubi-utils/ubirsvol.c
@@ -23,7 +23,6 @@
* Frank Haverkamp <haver@vnet.ibm.com>
*/
-#define PROGRAM_VERSION "1.1"
#define PROGRAM_NAME "ubirsvol"
#include <stdio.h>
@@ -51,7 +50,7 @@ static struct args args = {
.lebs = -1,
};
-static const char doc[] = PROGRAM_NAME " version " PROGRAM_VERSION
+static const char doc[] = PROGRAM_NAME " version " VERSION
" - a tool to resize UBI volumes.";
static const char optionsstr[] =
@@ -146,7 +145,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 ':':