Navigation



Ignore:
Timestamp:
Jun 19, 2015, 1:00:10 AM (9 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Make the stripped output the default. Define DEBUG_WITH_META to get longer format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r1281 r1295  
    298298
    299299/* In DEBUG mode, we add meta-information along each trace. This makes multi-threading problems easier to debug. */
    300 #if (defined(DEBUG) && !defined(DEBUG_WITHOUT_META))
     300#if (defined(DEBUG) && defined(DEBUG_WITH_META))
    301301# define STD_TRACE_FMT_STRING "pid:%s in %s@%s:%d: "
    302302# define STD_TRACE_FMT_ARGS   , ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"), __PRETTY_FUNCTION__, __STRIPPED_FILE__, __LINE__
    303 #else /* DEBUG && !DEBUG_WITHOUT_META */
     303#else /* DEBUG && DEBUG_WITH_META */
    304304# define STD_TRACE_FMT_STRING ""
    305305# define STD_TRACE_FMT_ARGS
    306 #endif /* DEBUG && !DEBUG_WITHOUT_META */
     306#endif /* DEBUG && DEBUG_WITH_META */
    307307
    308308/*************************
Note: See TracChangeset for help on using the changeset viewer.