Expose the default and maximum verbosity levels via with the debugging
level macros so that applications can use it to enable 'all' tracing.
Use these in the main library.

Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Acked-by: Mel Gorman <[EMAIL PROTECTED]>
---
 debug.c              |    2 +-
 libhugetlbfs_debug.h |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/debug.c b/debug.c
index a2174f8..25a2843 100644
--- a/debug.c
+++ b/debug.c
@@ -27,7 +27,7 @@
 
 #include "libhugetlbfs_internal.h"
 
-int __hugetlbfs_verbose = 1;
+int __hugetlbfs_verbose = VERBOSITY_DEFAULT;
 int __hugetlbfs_debug = 0;
 int __hugetlbfs_prefault = 1;
 char __hugetlbfs_hostname[64];
diff --git a/libhugetlbfs_debug.h b/libhugetlbfs_debug.h
index 4ca26f3..7eb8f4e 100644
--- a/libhugetlbfs_debug.h
+++ b/libhugetlbfs_debug.h
@@ -27,4 +27,7 @@
 #define DEBUG(...)             REPORT(3, "DEBUG", ##__VA_ARGS__)
 #define DEBUG_CONT(...)                REPORT_CONT(3, "DEBUG", ##__VA_ARGS__)
 
+#define VERBOSITY_MAX 3
+#define VERBOSITY_DEFAULT 1
+
 #endif
-- 
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
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to