elflink: log library version when HUGETLB_VERBOSE is enabled
Signed-off-by: Steve Fox <[EMAIL PROTECTED]>
---
diff --git a/elflink.c b/elflink.c
index e43e794..36afc0e 100644
--- a/elflink.c
+++ b/elflink.c
@@ -36,6 +36,7 @@
#include <elf.h>
#include <dlfcn.h>
+#include "version.h"
#include "hugetlbfs.h"
#include "libhugetlbfs_internal.h"
@@ -876,6 +877,8 @@ static void __attribute__ ((constructor))
setup_elflink(void)
if (check_env())
return;
+ DEBUG("libhugetlbfs version: %s\n", VERSION);
+
parse_elf(ehdr);
if (htlb_num_segs == 0) {
--
Steve Fox
IBM Linux Technology Center
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel