diff include/freeDiameter/libfdproto.h @ 1295:a22d9e907d48

Make the stripped output the default. Define DEBUG_WITH_META to get longer format.
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 19 Jun 2015 00:00:10 +0800
parents ab6457399be2
children 3f1e79e1273e
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Thu Jun 18 23:01:08 2015 +0800
+++ b/include/freeDiameter/libfdproto.h	Fri Jun 19 00:00:10 2015 +0800
@@ -297,13 +297,13 @@
 
 
 /* In DEBUG mode, we add meta-information along each trace. This makes multi-threading problems easier to debug. */
-#if (defined(DEBUG) && !defined(DEBUG_WITHOUT_META))
+#if (defined(DEBUG) && defined(DEBUG_WITH_META))
 # define STD_TRACE_FMT_STRING "pid:%s in %s@%s:%d: "
 # define STD_TRACE_FMT_ARGS   , ((char *)pthread_getspecific(fd_log_thname) ?: "unnamed"), __PRETTY_FUNCTION__, __STRIPPED_FILE__, __LINE__
-#else /* DEBUG && !DEBUG_WITHOUT_META */
+#else /* DEBUG && DEBUG_WITH_META */
 # define STD_TRACE_FMT_STRING ""
 # define STD_TRACE_FMT_ARGS
-#endif /* DEBUG && !DEBUG_WITHOUT_META */
+#endif /* DEBUG && DEBUG_WITH_META */
 
 /*************************
   The general debug macro
"Welcome to our mercurial repository"