[Freeswitch-trunk] [commit] r6724 - in freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua: sresolv stun

Freeswitch SVN mikej at freeswitch.org
Wed Dec 12 20:15:57 EST 2007


Author: mikej
Date: Wed Dec 12 20:15:56 2007
New Revision: 6724

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/stun/stun.c

Log:
default to the same as SU_DEBUG define for log level

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c	Wed Dec 12 20:15:56 2007
@@ -567,12 +567,16 @@
 extern char const SRESOLV_DEBUG[]; /* dummy declaration for Doxygen */
 #endif
 
+#ifndef SU_DEBUG
+#define SU_DEBUG 3
+#endif
+
 /**Debug log for @b sresolv module. 
  * 
  * The sresolv_log is the log object used by @b sresolv module. The level of
  * #sresolv_log is set using #SRESOLV_DEBUG environment variable.
  */
-su_log_t sresolv_log[] = { SU_LOG_INIT("sresolv", "SRESOLV_DEBUG", 3) };
+su_log_t sresolv_log[] = { SU_LOG_INIT("sresolv", "SRESOLV_DEBUG", SU_DEBUG) };
 
 /** Internal errors */
 enum {

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/stun/stun.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/stun/stun.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/stun/stun.c	Wed Dec 12 20:15:56 2007
@@ -74,8 +74,12 @@
 static char const __func__[] = "stun";
 #endif
 
+#ifndef SU_DEBUG
+#define SU_DEBUG 3
+#endif
+
 /** STUN log. */
-su_log_t stun_log[] = { SU_LOG_INIT("stun", "STUN_DEBUG", 3) }; 
+su_log_t stun_log[] = { SU_LOG_INIT("stun", "STUN_DEBUG", SU_DEBUG) }; 
 
 /**@var STUN_DEBUG
  *



More information about the Freeswitch-trunk mailing list