[svn-commits] seanbright: branch 1.4 r206635 - /branches/1.4/codecs/codec_dahdi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jul 15 10:57:54 CDT 2009
Author: seanbright
Date: Wed Jul 15 10:57:51 2009
New Revision: 206635
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206635
Log:
Only print debug info in codec_dahdi if we are asking for it.
Modified:
branches/1.4/codecs/codec_dahdi.c
Modified: branches/1.4/codecs/codec_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/codecs/codec_dahdi.c?view=diff&rev=206635&r1=206634&r2=206635
==============================================================================
--- branches/1.4/codecs/codec_dahdi.c (original)
+++ branches/1.4/codecs/codec_dahdi.c Wed Jul 15 10:57:51 2009
@@ -412,7 +412,9 @@
ztp->fmts.srcfmt = (1 << source);
ztp->fmts.dstfmt = (1 << dest);
- ast_log(LOG_DEBUG, "Opening transcoder channel from %d to %d.\n", source, dest);
+ if (option_debug) {
+ ast_log(LOG_DEBUG, "Opening transcoder channel from %d to %d.\n", source, dest);
+ }
retry:
if (ioctl(fd, DAHDI_TC_ALLOCATE, &ztp->fmts)) {
@@ -426,11 +428,15 @@
* we'll just convert from ulaw to signed linear in
* software. */
if (AST_FORMAT_SLINEAR == ztp->fmts.srcfmt) {
- ast_log(LOG_DEBUG, "Using soft_slin support on source\n");
+ if (option_debug) {
+ ast_log(LOG_DEBUG, "Using soft_slin support on source\n");
+ }
ztp->softslin = 1;
ztp->fmts.srcfmt = AST_FORMAT_ULAW;
} else if (AST_FORMAT_SLINEAR == ztp->fmts.dstfmt) {
- ast_log(LOG_DEBUG, "Using soft_slin support on destination\n");
+ if (option_debug) {
+ ast_log(LOG_DEBUG, "Using soft_slin support on destination\n");
+ }
ztp->softslin = 1;
ztp->fmts.dstfmt = AST_FORMAT_ULAW;
}
More information about the svn-commits
mailing list