From 5a8bb14259720cb9a0b7f087791746d16ff4f70c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 29 Apr 2007 03:21:56 +0000 Subject: [PATCH] update msg txt git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5039 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_commands/mod_commands.c | 2 +- src/switch_loadable_module.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 2027de0204..ea5ebb5269 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -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; } diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index dcfb0dbaca..3a5a679548 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -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) {