From: Joshua Colp Date: Thu, 8 Mar 2007 16:04:58 +0000 (+0000) Subject: Only print out debug message if the definition that makes the variables shows up... X-Git-Tag: 1.2.17~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=130b54f4b7dc96f2de324747534f7b6611f00eb1;p=thirdparty%2Fasterisk.git Only print out debug message if the definition that makes the variables shows up was actually defined. (issue #9233 reported by serginuez) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@58388 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/dsp.c b/dsp.c index f23f45b6a9..c86354f363 100644 --- a/dsp.c +++ b/dsp.c @@ -1292,8 +1292,10 @@ int ast_dsp_busydetect(struct ast_dsp *dsp) } #endif #if 1 +#ifndef BUSYDETECT_TONEONLY if (res) ast_log(LOG_DEBUG, "ast_dsp_busydetect detected busy, avgtone: %d, avgsilence %d\n", avgtone, avgsilence); +#endif #endif return res; }