]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix compiling without devmode
authorTerry Wilson <twilson@digium.com>
Wed, 2 Dec 2009 04:05:09 +0000 (04:05 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 2 Dec 2009 04:05:09 +0000 (04:05 +0000)
(closes issue #16367)
 Reported by: falves11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@232165 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index b10cf4a3c7b8758d3ccad7076f843f2ebcb710bd..bfbe49f6ff0faaa5524181769c3b1b4421e6bb3b 100644 (file)
@@ -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
        }