diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-06-14 19:39:12 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-06-14 19:39:12 +0000 |
commit | 055d82cbce5ad588f4d612c49f56cd76f4c8bab6 (patch) | |
tree | 4fd144260e58c9a66d331fc81b46473723452479 /main/frame.c | |
parent | 60b029aa8275ef7da70281b3791a2837ffba7930 (diff) |
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
Diffstat (limited to 'main/frame.c')
-rw-r--r-- | main/frame.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/frame.c b/main/frame.c index 57a8b0b33..c5a9e82eb 100644 --- a/main/frame.c +++ b/main/frame.c @@ -1153,8 +1153,7 @@ int ast_codec_choose(struct ast_codec_pref *pref, int formats, int find_best) if (ret & AST_FORMAT_AUDIO_MASK) return ret; - if (option_debug > 3) - ast_log(LOG_DEBUG, "Could not find preferred codec - %s\n", find_best ? "Going for the best codec" : "Returning zero codec"); + ast_debug(4, "Could not find preferred codec - %s\n", find_best ? "Going for the best codec" : "Returning zero codec"); return find_best ? ast_best_codec(formats) : 0; } @@ -1170,8 +1169,7 @@ int ast_parse_allow_disallow(struct ast_codec_pref *pref, int *mask, const char framems = 0; if ((psize = strrchr(this, ':'))) { *psize++ = '\0'; - if (option_debug) - ast_log(LOG_DEBUG,"Packetization for codec: %s is %s\n", this, psize); + ast_debug(1, "Packetization for codec: %s is %s\n", this, psize); framems = atoi(psize); if (framems < 0) { framems = 0; |