aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 04:05:09 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 04:05:09 +0000
commit2cc22d3bad4b7d32c0286d140b00182efa77ef8b (patch)
treefb216f42ed89bd1681f64d5acbf9bfcaeb242032 /main
parentb0954bd3b6efbf9fabf49f435bbf47965f7f2737 (diff)
Fix compiling without devmode
(closes issue #16367) Reported by: falves11 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@232165 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index b10cf4a3c..bfbe49f6f 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -2520,7 +2520,9 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
ast_log(LOG_ERROR, "Found frame with src '%s' on channel '%s' with datalen zero, but non-null data pointer!\n", f->src, chan->name);
ast_frame_dump(chan->name, f, "<<");
#else
- ast_debug(3, "Found frame with src '%s' on channel '%s' with datalen zero, but non-null data pointer!\n", f->src, chan->name);
+ if (option_debug > 2) {
+ ast_log(LOG_DEBUG, "Found frame with src '%s' on channel '%s' with datalen zero, but non-null data pointer!\n", f->src, chan->name);
+ }
#endif
}