aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-08 16:04:58 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-08 16:04:58 +0000
commit3a13c8794a9161a3e2c132be9e41e29e1f14af8f (patch)
tree6abd61eb86861dd456098e5b9ff17cb483825ef2 /dsp.c
parente2562a98e3035c94328f73292f8cbbaeb5cf5017 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.2@58388 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'dsp.c')
-rw-r--r--dsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dsp.c b/dsp.c
index f23f45b6a..c86354f36 100644
--- a/dsp.c
+++ b/dsp.c
@@ -1292,9 +1292,11 @@ 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;
}
#endif