Changeset 958:b415d1384e0d in freeDiameter
- Timestamp:
- Feb 28, 2013, 7:06:31 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/_sample/CMakeLists.txt
r653 r958 1 1 # The sample extension 2 2 PROJECT("Sample extension") 3 4 # Overwrite the debug level for the extension code if configured5 OPTION(DEBUG_LEVEL__SAMPLE "Overwrite debug level for the extension _sample if defined (valid values: FULL, ANNOYING, CALL...)" OFF)6 IF (DEBUG_LEVEL__SAMPLE)7 ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL__SAMPLE})8 ENDIF (DEBUG_LEVEL__SAMPLE)9 IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")10 MARK_AS_ADVANCED(DEBUG_LEVEL__SAMPLE)11 ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")12 3 13 4 # Compile as a module -
extensions/acl_wl/CMakeLists.txt
r833 r958 17 17 ) 18 18 19 # Overwrite the debug level for the extension code if configured20 OPTION(DEBUG_LEVEL_ACL_WL "Overwrite debug level for the extension acl_wl if defined (valid values: FULL, ANNOYING, CALL...)" OFF)21 IF (DEBUG_LEVEL_ACL_WL)22 ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_ACL_WL})23 ENDIF (DEBUG_LEVEL_ACL_WL)24 IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")25 MARK_AS_ADVANCED(DEBUG_LEVEL_ACL_WL)26 ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")27 28 19 # Compile as a module 29 20 FD_ADD_EXTENSION(acl_wl ${ACL_WL_SRC}) -
extensions/app_radgw/CMakeLists.txt
r845 r958 1 1 # The app_radgw extension 2 2 PROJECT("RADIUS/Diameter extensible gateway application for freeDiameter" C) 3 4 5 # Overwrite the debug level for the extension code if configured6 OPTION(DEBUG_LEVEL_APP_RADGW "Overwrite debug level for the extension app_radgw if defined (valid values: FULL, ANNOYING, CALL...)" OFF)7 IF (DEBUG_LEVEL_APP_RADGW)8 ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_APP_RADGW})9 ENDIF (DEBUG_LEVEL_APP_RADGW)10 IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")11 MARK_AS_ADVANCED(DEBUG_LEVEL_APP_RADGW)12 ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")13 3 14 4 -
extensions/rt_default/CMakeLists.txt
r313 r958 31 31 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) 32 32 33 # Overwrite the debug level for the extension code if configured, example: cmake -DDEBUG_LEVEL_RT_DEFAULT:STATIC=CALL ...34 OPTION(DEBUG_LEVEL_RT_DEFAULT "Overwrite debug level for the extension rt_default if defined (valid values: FULL, ANNOYING, CALL...)" OFF)35 IF (DEBUG_LEVEL_RT_DEFAULT)36 ADD_DEFINITIONS(-DTRACE_LEVEL=${DEBUG_LEVEL_RT_DEFAULT})37 ENDIF (DEBUG_LEVEL_RT_DEFAULT)38 IF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")39 MARK_AS_ADVANCED(DEBUG_LEVEL_RT_DEFAULT)40 ENDIF (NOT CMAKE_BUILD_TYPE MATCHES "Debug")41 42 33 # Compile these files as a freeDiameter extension 43 34 FD_ADD_EXTENSION(rt_default ${RT_DEFAULT_SRC}) -
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 -
tests/CMakeLists.txt
r878 r958 36 36 37 37 ADD_DEFINITIONS(-DTEST_DEBUG) 38 ADD_DEFINITIONS(-DTRACE_LEVEL=NONE)39 38 ADD_DEFINITIONS(-DBUILD_DIR="${CMAKE_BINARY_DIR}") 40 39
Note: See TracChangeset
for help on using the changeset viewer.