[svn-commits] mnicholson: branch mnicholson/chan-mobile-refactor r806 - /team/mnicholson/ch...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Mar 13 11:44:59 CDT 2009


Author: mnicholson
Date: Fri Mar 13 11:44:56 2009
New Revision: 806

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=806
Log:
tweak debug levels for some debug output

Modified:
    team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c

Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=806&r1=805&r2=806
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Fri Mar 13 11:44:56 2009
@@ -1011,7 +1011,7 @@
 	struct mbl_pvt *pvt = ast->tech_pvt;
 	int r;
 
-	ast_debug(2, "*** mbl_read()\n");
+	ast_debug(3, "*** mbl_read()\n");
 
 	if (!pvt->owner) {
 		return &ast_null_frame;
@@ -1048,7 +1048,7 @@
 	struct mbl_pvt *pvt = ast->tech_pvt;
 	struct ast_frame *f;
 
-	ast_debug(2, "*** mbl_write\n");
+	ast_debug(3, "*** mbl_write\n");
 
 	if (frame->frametype != AST_FRAME_VOICE) {
 		return 0;
@@ -1559,15 +1559,15 @@
 	int r;
 
 	if (s == -1) {
-		ast_debug(2, "sco_write() not ready\n");
+		ast_debug(3, "sco_write() not ready\n");
 		return 0;
 	}
 
-	ast_debug(2, "sco_write()\n");
+	ast_debug(3, "sco_write()\n");
 
 	r = write(s, buf, len);
 	if (r == -1) {
-		ast_debug(2, "sco write error %d\n", errno);
+		ast_debug(3, "sco write error %d\n", errno);
 		return 0;
 	}
 
@@ -1586,10 +1586,10 @@
 	int res;
 	char buf[DEVICE_FRAME_SIZE];
 
-	ast_debug(2, "sco_read()\n");
+	ast_debug(3, "sco_read()\n");
 
 	if ((res = read(fd, buf, DEVICE_FRAME_SIZE)) <= 0) {
-		ast_debug(2, "error reading sco audio data\n");
+		ast_debug(3, "error reading sco audio data\n");
 		close(fd);
 		/* don't set pvt->sco_sock = -1 here, there may already be a
 		 * new pvt->sco_sock */




More information about the svn-commits mailing list