aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-05 22:04:08 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-05 22:04:08 +0000
commit080a06a473ca38783c382fd5df05619033b245e0 (patch)
treeb279341f1c12c6041e85234731e79cd9fae8d44f /main
parent7193c2e2ef56da3719108a3000066d5a1afe9f2f (diff)
Print out the name of a function being registered in color, just like the name
of applications when they get registered. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96716 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 64e34a419..308560063 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -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)
{
struct ast_custom_function *cur;
+ char tmps[80];
if (!acf)
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_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;
}