Include the library version as part of the usage output.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
hugectl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/hugectl.c b/hugectl.c
index 6742637..0f6e433 100644
--- a/hugectl.c
+++ b/hugectl.c
@@ -45,6 +45,7 @@
} while (0);
#include "libhugetlbfs_debug.h"
+#include "version.h"
extern int errno;
extern int optind;
@@ -80,6 +81,7 @@ void print_usage()
LIBDIR32 ":"
#endif
")");
+ fprintf(stderr, "Version: %s\n", VERSION);
}
int opt_dry_run = 0;
--
1.5.6.GIT
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel