[Asterisk-cvs] asterisk translate.c,1.22,1.23

citats at lists.digium.com citats at lists.digium.com
Wed Apr 21 00:22:11 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk

Modified Files:
	translate.c 
Log Message:
Log when we unload a translator (bug 1460)


Index: translate.c
===================================================================
RCS file: /usr/cvsroot/asterisk/translate.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- translate.c	20 Apr 2004 15:28:58 -0000	1.22
+++ translate.c	21 Apr 2004 04:26:38 -0000	1.23
@@ -379,6 +379,7 @@
 
 int ast_unregister_translator(struct ast_translator *t)
 {
+	char tmp[80];
 	struct ast_translator *u, *ul = NULL;
 	ast_mutex_lock(&list_lock);
 	u = list;
@@ -388,6 +389,8 @@
 				ul->next = u->next;
 			else
 				list = u->next;
+			if (option_verbose > 1)
+				ast_verbose(VERBOSE_PREFIX_2 "Unregistered translator '%s' from format %s to %s\n", term_color(tmp, t->name, COLOR_MAGENTA, COLOR_BLACK, sizeof(tmp)), ast_getformatname(1 << t->srcfmt), ast_getformatname(1 << t->dstfmt));
 			break;
 		}
 		ul = u;




More information about the svn-commits mailing list