Add a massive set of changes for converting to use the ast_debug() macro.

(issue #9957, patches from mvanbaak, caio1982, critch, and dimas)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-06-14 19:39:12 +00:00
parent 60b029aa82
commit 055d82cbce
85 changed files with 1810 additions and 3068 deletions

View File

@@ -193,8 +193,7 @@ static int mp3_exec(struct ast_channel *chan, void *data)
break;
}
} else {
if (option_debug)
ast_log(LOG_DEBUG, "No more mp3\n");
ast_debug(1, "No more mp3\n");
res = 0;
break;
}
@@ -202,22 +201,19 @@ static int mp3_exec(struct ast_channel *chan, void *data)
} else {
ms = ast_waitfor(chan, ms);
if (ms < 0) {
if (option_debug)
ast_log(LOG_DEBUG, "Hangup detected\n");
ast_debug(1, "Hangup detected\n");
res = -1;
break;
}
if (ms) {
f = ast_read(chan);
if (!f) {
if (option_debug)
ast_log(LOG_DEBUG, "Null frame == hangup() detected\n");
ast_debug(1, "Null frame == hangup() detected\n");
res = -1;
break;
}
if (f->frametype == AST_FRAME_DTMF) {
if (option_debug)
ast_log(LOG_DEBUG, "User pressed a key\n");
ast_debug(1, "User pressed a key\n");
ast_frfree(f);
res = 0;
break;