summaryrefslogtreecommitdiff
path: root/navit/debug.h
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-11-22 22:35:11 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-11-22 22:35:11 +0000
commitf9169c4e59d3a3f90139a3d4ed5bc27798327d36 (patch)
tree49a2e1c6ea5617f9ff86e92dad337249891bb579 /navit/debug.h
parentfc81e3e5a398ca4718824921e1f0fc6a55bb2403 (diff)
downloadnavit-f9169c4e59d3a3f90139a3d4ed5bc27798327d36.tar.gz
Refactor:core:Introduce #define DEFAULT_DEBUG_LEVEL|#1269, part 3
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5964 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.h')
-rw-r--r--navit/debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/debug.h b/navit/debug.h
index a42de4a71..49f19566f 100644
--- a/navit/debug.h
+++ b/navit/debug.h
@@ -52,11 +52,11 @@ typedef enum {
lvl_debug
} dbg_level;
-extern dbg_level debug_level;
+extern dbg_level max_debug_level;
#define dbg_str2(x) #x
#define dbg_str1(x) dbg_str2(x)
#define dbg_module dbg_str1(MODULE)
-#define dbg(level,...) { if (debug_level >= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); }
+#define dbg(level,...) { if (max_debug_level >= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); }
#define dbg_assert(expr) ((expr) ? (void) 0 : debug_assert_fail(dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),__FILE__,__LINE__,dbg_str1(expr)))
#define DEBUG_MODULE_GLOBAL "global"