diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-05 23:00:15 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-05 23:00:15 +0000 |
commit | 8ceb053cff649938ab88166c64760dee8727403c (patch) | |
tree | 5c9c08fb9ce70cd29aa48d1b901718df97e63dac /apps/app_zapras.c | |
parent | a53c56e616a589654dc7ebe47297426a1a1eac74 (diff) |
Get rid of any remaining ast_verbose calls in the code in favor of
ast_verb
(closes issue #11934)
Reported by: mvanbaak
Patches:
20080205_astverb-2.diff.txt uploaded by mvanbaak (license 7)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102525 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_zapras.c')
-rw-r--r-- | apps/app_zapras.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/apps/app_zapras.c b/apps/app_zapras.c index 480e5f643..31f208d22 100644 --- a/apps/app_zapras.c +++ b/apps/app_zapras.c @@ -165,16 +165,13 @@ static void run_ras(struct ast_channel *chan, char *args) if (res < 0) { ast_log(LOG_WARNING, "wait4 returned %d: %s\n", res, strerror(errno)); } - if (option_verbose > 2) { - if (WIFEXITED(status)) { - ast_verbose(VERBOSE_PREFIX_3 "RAS on %s terminated with status %d\n", chan->name, WEXITSTATUS(status)); - } else if (WIFSIGNALED(status)) { - ast_verbose(VERBOSE_PREFIX_3 "RAS on %s terminated with signal %d\n", - chan->name, WTERMSIG(status)); - } else { - ast_verbose(VERBOSE_PREFIX_3 "RAS on %s terminated weirdly.\n", chan->name); - } - } + if (WIFEXITED(status)) + ast_verb(3, "RAS on %s terminated with status %d\n", chan->name, WEXITSTATUS(status)); + else if (WIFSIGNALED(status)) + ast_verb(3, "RAS on %s terminated with signal %d\n", chan->name, WTERMSIG(status)); + else + ast_verbose(VERBOSE_PREFIX_3 "RAS on %s terminated weirdly.\n", chan->name); + /* Throw back into audio mode */ x = 1; ioctl(chan->fds[0], ZT_AUDIOMODE, &x); |