From: Terry Wilson Date: Wed, 2 Dec 2009 04:05:09 +0000 (+0000) Subject: Fix compiling without devmode X-Git-Tag: 1.4.28-rc1~11^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c8cea6919c9f765cdc3abeb7e8e0c81c1b8691;p=thirdparty%2Fasterisk.git Fix compiling without devmode (closes issue #16367) Reported by: falves11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@232165 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index b10cf4a3c7..bfbe49f6ff 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 }