Now that we have tools (such as hugectl) which interact directly with the library it is good to know the versions of both in the debugging output and good to check that the versions match. Where they do not report that as a WARNING.
I checked that the library does not currently report its own version, so this is not duplicate any output. I also moved this whole lot out of elflink.c to debug.c where (as Nish suggested) it fits better. Finally I made the variable more specific to its job. Changelog: V2: - move library support to debug.c - rename HUGETLB_VERSION to HUGETLB_TOOL_VERSION - get hugeedit to report its version -apw Andy Whitcroft (5): library: report the library version library: check associated tools version where offered hugectl: report the version as part of the usage output hugectl: pass the tool version to the library for checking hugeedit: report the version as part of the usage output debug.c | 6 ++++++ hugectl.c | 7 +++++++ hugeedit.c | 3 +++ 3 files changed, 16 insertions(+), 0 deletions(-) ------------------------------------------------------------------------- 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
