Report the library version in the debugging output.
Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
---
debug.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/debug.c b/debug.c
index 25a2843..4850d89 100644
--- a/debug.c
+++ b/debug.c
@@ -26,6 +26,7 @@
#include "hugetlbfs.h"
#include "libhugetlbfs_internal.h"
+#include "version.h"
int __hugetlbfs_verbose = VERBOSITY_DEFAULT;
int __hugetlbfs_debug = 0;
@@ -55,6 +56,8 @@ static void __hugetlbfs_init_debug(void)
gethostname(__hugetlbfs_hostname, sizeof(__hugetlbfs_hostname)-1);
+ DEBUG("Version: %s\n", VERSION);
+
initialized = 1;
}
--
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