Navigation


Changeset 958:b415d1384e0d in freeDiameter for include


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.