mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 06:00:36 +00:00
Print out the name of a function being registered in color, just like the name
of applications when they get registered. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@96716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2268,6 +2268,7 @@ int ast_custom_function_unregister(struct ast_custom_function *acf)
|
|||||||
int __ast_custom_function_register(struct ast_custom_function *acf, struct ast_module *mod)
|
int __ast_custom_function_register(struct ast_custom_function *acf, struct ast_module *mod)
|
||||||
{
|
{
|
||||||
struct ast_custom_function *cur;
|
struct ast_custom_function *cur;
|
||||||
|
char tmps[80];
|
||||||
|
|
||||||
if (!acf)
|
if (!acf)
|
||||||
return -1;
|
return -1;
|
||||||
@@ -2297,7 +2298,7 @@ int __ast_custom_function_register(struct ast_custom_function *acf, struct ast_m
|
|||||||
|
|
||||||
AST_RWLIST_UNLOCK(&acf_root);
|
AST_RWLIST_UNLOCK(&acf_root);
|
||||||
|
|
||||||
ast_verb(2, "Registered custom function %s\n", acf->name);
|
ast_verb(2, "Registered custom function '%s'\n", term_color(tmps, acf->name, COLOR_BRCYAN, 0, sizeof(tmps)));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user