[asterisk-commits] russell: trunk r96716 - /trunk/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Jan 5 16:04:08 CST 2008
Author: russell
Date: Sat Jan 5 16:04:08 2008
New Revision: 96716
URL: http://svn.digium.com/view/asterisk?view=rev&rev=96716
Log:
Print out the name of a function being registered in color, just like the name
of applications when they get registered.
Modified:
trunk/main/pbx.c
Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=96716&r1=96715&r2=96716
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Sat Jan 5 16:04:08 2008
@@ -2268,6 +2268,7 @@
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 @@
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;
}
More information about the asterisk-commits
mailing list