Changeset 304:ad3c46016584 in freeDiameter for include/freeDiameter/libfreeDiameter.h
- Timestamp:
- May 14, 2010, 5:26:53 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfreeDiameter.h
r302 r304 224 224 } 225 225 #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 } \ 231 240 } 232 241 #endif /* DEBUG */
Note: See TracChangeset
for help on using the changeset viewer.