Changeset 958:b415d1384e0d in freeDiameter for include
- Timestamp:
- Feb 28, 2013, 7:06:31 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfdproto.h
r955 r958 222 222 #define CALL 9 /* Display calls to most functions (with CHECK macros) */ 223 223 224 /* Increment the debug level for a file at compilation time by defining -DTRACE_LEVEL=FULL for example. */225 #ifndef TRACE_LEVEL226 #define TRACE_LEVEL NONE227 #endif /* TRACE_LEVEL */228 229 /* The level of the file being compiled. */230 static int local_debug_level = TRACE_LEVEL;231 232 224 /* A global level, changed by configuration or cmd line for example. Default is INFO (in libfdproto/log.c). */ 233 225 extern int fd_g_debug_lvl; … … 252 244 /* Boolean for tracing at a certain level */ 253 245 #ifdef DEBUG 254 #define TRACE_BOOL(_level_) ( ((_level_) <= local_debug_level +fd_g_debug_lvl) \246 #define TRACE_BOOL(_level_) ( ((_level_) <= fd_g_debug_lvl) \ 255 247 || (fd_debug_one_function && !strcmp(fd_debug_one_function, __PRETTY_FUNCTION__)) \ 256 248 || (fd_debug_one_file && !strcmp(fd_debug_one_file, __STRIPPED_FILE__) ) ) 257 249 #else /* DEBUG */ 258 #define TRACE_BOOL(_level_) ((_level_) <= local_debug_level +fd_g_debug_lvl)250 #define TRACE_BOOL(_level_) ((_level_) <= fd_g_debug_lvl) 259 251 #endif /* DEBUG */ 260 252
Note: See TracChangeset
for help on using the changeset viewer.