Log when we unload a translator (bug 1460)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
James Golovich
2004-04-21 04:26:38 +00:00
parent 0f3f7eee9a
commit fe9255a816

View File

@@ -379,6 +379,7 @@ int ast_register_translator(struct ast_translator *t)
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 @@ int ast_unregister_translator(struct ast_translator *t)
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;