[svn-commits] russell: trunk r88937 - /trunk/channels/chan_unistim.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 6 08:17:33 CST 2007


Author: russell
Date: Tue Nov  6 08:17:33 2007
New Revision: 88937

URL: http://svn.digium.com/view/asterisk?view=rev&rev=88937
Log:
convert uses of LOG_DEBUG to use ast_debug()

Modified:
    trunk/channels/chan_unistim.c

Modified: trunk/channels/chan_unistim.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_unistim.c?view=diff&rev=88937&r1=88936&r2=88937
==============================================================================
--- trunk/channels/chan_unistim.c (original)
+++ trunk/channels/chan_unistim.c Tue Nov  6 08:17:33 2007
@@ -1557,7 +1557,7 @@
 		return -1;
 	}
 	if (unistimdebug)
-		ast_log(LOG_DEBUG, "Released sub %d of channel %s@%s\n", x, p->name,
+		ast_debug(1, "Released sub %d of channel %s@%s\n", x, p->name,
 				p->parent->name);
 	ast_mutex_destroy(&p->lock);
 	ast_free(p->subs[x]);
@@ -2486,7 +2486,7 @@
 					 p->subs[SUB_THREEWAY]->owner, p->subs[SUB_THREEWAY]->owner->name,
 					 p->subs[SUB_THREEWAY]->subtype);
 		} else
-			ast_log(LOG_DEBUG, "Current sub [%s] already has owner\n", sub->owner->name);
+			ast_debug(1, "Current sub [%s] already has owner\n", sub->owner->name);
 	}
 	return;
 }
@@ -3518,7 +3518,7 @@
 	strcpy(tmpbuf, ast_inet_ntoa(pte->sin.sin_addr));
 	strcat(tmpbuf, " Unknown request packet\n");
 	if (unistimdebug)
-		ast_log(LOG_DEBUG, tmpbuf);
+		ast_debug(1, "%s", tmpbuf);
 	return;
 }
 
@@ -3776,7 +3776,7 @@
 	s = channel_to_session(ast);
 	sub = ast->tech_pvt;
 	if (!s) {
-		ast_log(LOG_DEBUG, "Asked to hangup channel not connected\n");
+		ast_debug(1, "Asked to hangup channel not connected\n");
 		ast_mutex_lock(&sub->lock);
 		sub->owner = NULL;
 		ast->tech_pvt = NULL;
@@ -3995,7 +3995,7 @@
 		/* We already hold the channel lock */
 		if (f->frametype == AST_FRAME_VOICE) {
 			if (f->subclass != sub->owner->nativeformats) {
-				ast_log(LOG_DEBUG,
+				ast_debug(1,
 						"Oooh, format changed from %s (%d) to %s (%d)\n",
 						ast_getformatname(sub->owner->nativeformats),
 						sub->owner->nativeformats, ast_getformatname(f->subclass),
@@ -4066,7 +4066,7 @@
 
 	ast_mutex_lock(&p->lock);
 
-	ast_log(LOG_DEBUG, "New owner for channel USTM/%s@%s-%d is %s\n", l->name,
+	ast_debug(1, "New owner for channel USTM/%s@%s-%d is %s\n", l->name,
 			l->parent->name, p->subtype, newchan->name);
 
 	if (p->owner != oldchan) {




More information about the svn-commits mailing list