]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update msg txt
authorAnthony Minessale <anthony.minessale@gmail.com>
Sun, 29 Apr 2007 03:21:56 +0000 (03:21 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sun, 29 Apr 2007 03:21:56 +0000 (03:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5039 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_commands/mod_commands.c
src/switch_loadable_module.c

index 2027de0204b30030ac909494890d9cc5e603b915..ea5ebb526909de294f7da61f7fecbac9b69eae3c 100644 (file)
@@ -133,7 +133,7 @@ static switch_status_t ctl_function(char *data, switch_core_session_t *session,
                        arg = 0;
                        switch_core_session_ctl(SCSC_SHUTDOWN, &arg);
                } else {
-                       stream->write_function(stream, "INVALID COMMAND [%s]\nUSAGE: fsctl [hupall|pause|resume|shutdown]\n", argv[0]);
+                       stream->write_function(stream, "INVALID COMMAND\nUSAGE: fsctl [hupall|pause|resume|shutdown]\n");
                        goto end;
                }
 
index dcfb0dbaca6a13b4fa1fd3921e64231aa0b37e1a..3a5a679548e345835aa0959643d647048196086f 100644 (file)
@@ -959,8 +959,7 @@ SWITCH_DECLARE(switch_status_t) switch_api_execute(char *cmd, char *arg, switch_
                status = api->function(arg, session, stream);
        } else {
                status = SWITCH_STATUS_FALSE;
-               stream->write_function(stream, "INVALID COMMAND [%s]", cmd);
-               /* snprintf(retbuf, len, "INVALID COMMAND [%s]", cmd); */
+               stream->write_function(stream, "INVALID COMMAND!\n");
        }
 
        if (stream->event) {