freeswitch plugin: Removed some unnecessary DEBUG statements
[collectd.git] / src / freeswitch.c
index 52ff088..dbe3eab 100644 (file)
@@ -132,8 +132,6 @@ static void fs_command_free (fs_command_t *fc)
 
 static int fs_config_add_match_dstype (int *dstype_ret, oconfig_item_t *ci)
 {
-       DEBUG ("freeswitch plugin: in fs_config_add_match_dstype");
-
        int dstype;
 
        if ((ci->values_num != 1) || (ci->values[0].type != OCONFIG_TYPE_STRING))
@@ -186,8 +184,6 @@ static int fs_config_add_match_dstype (int *dstype_ret, oconfig_item_t *ci)
 
 static int fs_config_add_match (fs_command_t *fs_command, oconfig_item_t *ci)
 {
-       DEBUG ("freeswitch plugin: in fs_config_add_match");
-
        fs_match_t *fs_match;
        int status;
        int i;
@@ -280,8 +276,6 @@ static int fs_config_add_match (fs_command_t *fs_command, oconfig_item_t *ci)
 
 static int fs_config_add_command (oconfig_item_t *ci)
 {
-       DEBUG ("freeswitch plugin: in fs_config_add_command");
-
        fs_command_t *command;
        int status;
        int i;
@@ -359,8 +353,6 @@ static int fs_complex_config (oconfig_item_t *ci)
        int status;
        int i;
 
-       DEBUG ("freeswitch plugin: reading config");
-
        success = 0;
        errors = 0;
 
@@ -441,15 +433,13 @@ static void fs_submit (const fs_command_t *fc,
 
 static int fs_read_command (fs_command_t *fc)
 {
-       DEBUG ("freeswitch plugin: in fs_read_command");
-
        fs_match_t *fm;
        int status;
 
        /* can't the following be done nicer ? */
        char *line;
-       line = (char *) malloc (strlen(fc->line)+2);
-       snprintf(line, strlen(fc->line)+2, "%s\n\n", fc->line);
+       line = (char *) malloc (strlen(fc->line)+3);
+       snprintf(line, strlen(fc->line)+3, "%s\n\n", fc->line);
        esl_send_recv(&esl_handle, line);
 
        fc->buffer_fill = 0;
@@ -491,8 +481,6 @@ static int fs_read (void)
 {
        fs_command_t *fc;
 
-       DEBUG ("freeswitch plugin: read poll");
-
        for (fc = fs_commands_g; fc != NULL; fc = fc->next)
                fs_read_command (fc);