Signed-off-by: Eric B Munson <[EMAIL PROTECTED]>
---
 debug.c     |   14 --------------
 hugeutils.c |   12 ++++++++++++
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/debug.c b/debug.c
index e854dff..a9254d6 100644
--- a/debug.c
+++ b/debug.c
@@ -36,23 +36,9 @@ static int initialized;
 
 static void __hugetlbfs_init_debug(void)
 {
-       char *env;
-
        if (initialized)
                return;
 
-       env = getenv("HUGETLB_VERBOSE");
-       if (env)
-               __hugetlbfs_verbose = atoi(env);
-
-       env = getenv("HUGETLB_DEBUG");
-       if (env)
-               __hugetlbfs_debug = 1;
-
-       env = getenv("HUGETLB_NO_PREFAULT");
-       if (env)
-               __hugetlbfs_prefault = 0;
-
        gethostname(__hugetlbfs_hostname, sizeof(__hugetlbfs_hostname)-1);
 
        initialized = 1;
diff --git a/hugeutils.c b/hugeutils.c
index d7b4b07..04c955b 100644
--- a/hugeutils.c
+++ b/hugeutils.c
@@ -235,7 +235,19 @@ int file_write_ulong(char *file, unsigned long val)
  */
 void hugetlbfs_setup_env()
 {
+       char *env;
+
+       env = getenv("HUGETLB_VERBOSE");
+       if (env)
+               __hugetlbfs_verbose = atoi(env);
+
+       env = getenv("HUGETLB_DEBUG");
+       if (env)
+               __hugetlbfs_debug = 1;
 
+       env = getenv("HUGETLB_NO_PREFAULT");
+       if (env)
+               __hugetlbfs_prefault = 0;
 }
 
 /*
-- 
1.6.0.3


-------------------------------------------------------------------------
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
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to