From: Michael Jerris Date: Fri, 4 May 2007 02:14:40 +0000 (+0000) Subject: fix type X-Git-Tag: v1.0-beta1~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7409a6c975b99f0eef3ae5a48c4fbe50e07b6f8b;p=thirdparty%2Ffreeswitch.git fix type git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5086 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index 8caab5fe2d..8448453384 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -399,16 +399,16 @@ static void log_function(switch_core_session_t *session, char *data) assert(channel != NULL); if (data && (level = strdup(data))) { - switch_log_level_t etype = SWITCH_LOG_DEBUG; + switch_log_level_t ltype = SWITCH_LOG_DEBUG; if ((log_str = strchr(level, ' '))) { *log_str++ = '\0'; - switch_name_event(level, &etype); + ltype = switch_log_str2level(level); } else { log_str = level; } - switch_log_printf(SWITCH_CHANNEL_LOG, etype, "%s\n", log_str); + switch_log_printf(SWITCH_CHANNEL_LOG, ltype, "%s\n", log_str); switch_safe_free(level); } }