From c2c8cea6919c9f765cdc3abeb7e8e0c81c1b8691 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Wed, 2 Dec 2009 04:05:09 +0000 Subject: [PATCH] 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 --- main/channel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } -- 2.47.2