]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
rename debug trace
authorMichael Jerris <mike@jerris.com>
Mon, 6 Jul 2015 21:28:05 +0000 (17:28 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 25 Aug 2015 19:52:05 +0000 (14:52 -0500)
libs/freetdm/mod_freetdm/mod_freetdm.c

index ce417c8c9d7110b9a13215fb0e8165792a5adfd4..576eae25943e4762d640f552ce09df11dceecda2 100644 (file)
@@ -35,7 +35,7 @@
 #include <switch.h>
 #include "freetdm.h"
 
-//#define CUDATEL_DEBUG
+//#define BACKTRACE_DEBUG
 
 #define FREETDM_LIMIT_REALM "__freetdm"
 #define FREETDM_VAR_PREFIX "freetdm_"
@@ -494,16 +494,16 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
        return SWITCH_STATUS_SUCCESS;
 }
 
-#ifdef CUDATEL_DEBUG
-struct cudatel_trace_priv {
+#ifdef BACKTRACE_DEBUG
+struct debug_trace_priv {
        const char *name;
        int span_id;
        int chan_id;
 };
 
-static void cudatel_trace(const int tid, const void *addr, const char *symbol, void *priv)
+static void debug_trace(const int tid, const void *addr, const char *symbol, void *priv)
 {
-       struct cudatel_trace_priv *data = priv;
+       struct debug_trace_priv *data = priv;
        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[%d:%d][tid:%d] %s -> %s\n",
                        data->span_id, data->chan_id, tid, data->name, symbol);
 }
@@ -566,13 +566,13 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session)
                goto end;
        }
 
-#ifdef CUDATEL_DEBUG
+#ifdef BACKTRACE_DEBUG
        {
-               struct cudatel_trace_priv trace_data;
+               struct debug_trace_priv trace_data;
                trace_data.name = name;
                trace_data.span_id = span_id;
                trace_data.chan_id = chan_id;
-               ftdm_backtrace_walk(&cudatel_trace, &trace_data);
+               ftdm_backtrace_walk(&debug_trace, &trace_data);
        }
 #endif