[Freeswitch-svn] [commit] r5086 - freeswitch/trunk/src/mod/applications/mod_dptools

Freeswitch SVN mikej at freeswitch.org
Thu May 3 22:14:40 EDT 2007


Author: mikej
Date: Thu May  3 22:14:40 2007
New Revision: 5086

Modified:
   freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c

Log:
fix type

Modified: freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_dptools/mod_dptools.c	Thu May  3 22:14:40 2007
@@ -399,16 +399,16 @@
 	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);
 	}
 }



More information about the Freeswitch-svn mailing list