Where a tool has reported its version compare it to the library and report
any disparity.
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 4850d89..4de9c94 100644
--- a/debug.c
+++ b/debug.c
@@ -57,6 +57,9 @@ static void __hugetlbfs_init_debug(void)
gethostname(__hugetlbfs_hostname, sizeof(__hugetlbfs_hostname)-1);
DEBUG("Version: %s\n", VERSION);
+ env = getenv("HUGETLB_TOOL_VERSION");
+ if (env && strcmp(env, VERSION) != 0)
+ WARNING("version missmatch library=%s tool=%s\n", VERSION, env);
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