From: Russell Bryant Date: Sat, 5 Jan 2008 22:04:08 +0000 (+0000) Subject: Print out the name of a function being registered in color, just like the name X-Git-Tag: 1.6.0-beta1~3^2~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e28c57081b1c9bf5a9c5fcacad51e7538d1a91e;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/pbx.c b/main/pbx.c index 64e34a4197..3085600638 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; }