Include the library version as part of the usage output.

Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
 hugeedit.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/hugeedit.c b/hugeedit.c
index e0ea923..630a88e 100644
--- a/hugeedit.c
+++ b/hugeedit.c
@@ -42,6 +42,7 @@
        } while (0)
 
 #include "libhugetlbfs_internal.h"
+#include "version.h"
 
 /*
  * All MAP_* options are tagged with MAP_BASE to differentiate them as options
@@ -67,6 +68,8 @@ void print_usage()
        OPTION("--data", "Remap program data into huge pages by default");
        OPTION("--disable", "Remap no segments into huge pages by default");
        OPTION("--help, -h", "Print this usage information");
+
+       fprintf(stderr, "Version: %s\n", VERSION);
 }
 
 int check_elf_wordsize(void *ehdr)
-- 
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

Reply via email to