Navigation


Changeset 958:b415d1384e0d in freeDiameter


Ignore:
Timestamp:
Feb 28, 2013, 7:06:31 PM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Remove TRACE_LEVEL. Obsoleted by run-time support (--debug-one-file).
Ok sdecugis.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/_sample/CMakeLists.txt

    r653 r958  
    11# The sample extension
    22PROJECT("Sample extension")
    3 
    4 # Overwrite the debug level for the extension code if configured
    5 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")
    123
    134# Compile as a module
  • extensions/acl_wl/CMakeLists.txt

    r833 r958  
    1717)
    1818
    19 # Overwrite the debug level for the extension code if configured
    20 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 
    2819# Compile as a module
    2920FD_ADD_EXTENSION(acl_wl ${ACL_WL_SRC})
  • extensions/app_radgw/CMakeLists.txt

    r845 r958  
    11# The app_radgw extension
    22PROJECT("RADIUS/Diameter extensible gateway application for freeDiameter" C)
    3 
    4 
    5 # Overwrite the debug level for the extension code if configured
    6 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")
    133
    144
  • extensions/rt_default/CMakeLists.txt

    r313 r958  
    3131INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
    3232
    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 
    4233# Compile these files as a freeDiameter extension
    4334FD_ADD_EXTENSION(rt_default ${RT_DEFAULT_SRC})
  • include/freeDiameter/libfdproto.h

    r955 r958  
    222222#define CALL 9  /* Display calls to most functions (with CHECK macros) */
    223223
    224 /* Increment the debug level for a file at compilation time by defining -DTRACE_LEVEL=FULL for example. */
    225 #ifndef TRACE_LEVEL
    226 #define TRACE_LEVEL NONE
    227 #endif /* TRACE_LEVEL */
    228 
    229 /* The level of the file being compiled. */
    230 static int local_debug_level = TRACE_LEVEL;
    231 
    232224/* A global level, changed by configuration or cmd line for example. Default is INFO (in libfdproto/log.c). */
    233225extern int fd_g_debug_lvl;
     
    252244/* Boolean for tracing at a certain level */
    253245#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)                                     \
    255247                                || (fd_debug_one_function && !strcmp(fd_debug_one_function, __PRETTY_FUNCTION__))       \
    256248                                || (fd_debug_one_file && !strcmp(fd_debug_one_file, __STRIPPED_FILE__) ) )
    257249#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)
    259251#endif /* DEBUG */
    260252
  • tests/CMakeLists.txt

    r878 r958  
    3636
    3737ADD_DEFINITIONS(-DTEST_DEBUG)
    38 ADD_DEFINITIONS(-DTRACE_LEVEL=NONE)
    3938ADD_DEFINITIONS(-DBUILD_DIR="${CMAKE_BINARY_DIR}")
    4039
Note: See TracChangeset for help on using the changeset viewer.