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) {