Navigation



Ignore:
Timestamp:
May 14, 2010, 5:26:53 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added install directives for cmake; also allow default directory to seek for extensions and configuration files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfreeDiameter.h

    r302 r304  
    224224}
    225225#else /* DEBUG */
    226 /* Do not print thread, function, ... only the message itself in this case. */
    227 #define TRACE_DEBUG(level,format,args... ) {            \
    228         if ( TRACE_BOOL(level) ) {                      \
    229                 fd_log_debug(format "\n", ## args);     \
    230         }                                               \
     226/* Do not print thread, function, ... only the message itself in this case, unless the debug level is set > FULL. */
     227#define TRACE_DEBUG(level,format,args... ) {                                                                                            \
     228        if ( TRACE_BOOL(level) ) {                                                                                                      \
     229                if (fd_g_debug_lvl > FULL) {                                                                                            \
     230                        char __buf[25];                                                                                                 \
     231                        char * __thn = ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed");                                       \
     232                        fd_log_debug("\t | tid:%-20s\t%s\tin %s@%s:%d\n"                                                                \
     233                                  "\t%s|%*s" format "\n",                                                                               \
     234                                                __thn, fd_log_time(NULL, __buf, sizeof(__buf)), __PRETTY_FUNCTION__, __FILE__, __LINE__,\
     235                                                (level < FULL)?"@":" ",level, "", ## args);                                             \
     236                } else {                                                                                                                \
     237                        fd_log_debug(format "\n", ## args);                                                                             \
     238                }                                                                                                                       \
     239        }                                                                                                                               \
    231240}
    232241#endif /* DEBUG */
Note: See TracChangeset for help on using the changeset viewer.