--- ../../cvs1.2/asterisk-1.2/pbx.c Fri Nov 18 09:47:36 2005 +++ ./pbx.c Thu Dec 29 13:03:46 2005 @@ -1509,7 +1509,7 @@ /* Evaluate function */ cp4 = ast_func_read(c, vars, workspace, VAR_BUF_SIZE); - ast_log(LOG_DEBUG, "Function result is '%s'\n", cp4 ? cp4 : "(null)"); + ast_log(LOG_DEBUG, "Function result is '%s' - we're at pos %d in '%s'\n", cp4 ? cp4 : "(null)", whereweare - cp1, cp1); } else { /* Retrieve variable value */ pbx_retrieve_variable(c, vars, &cp4, workspace, VAR_BUF_SIZE, headp); @@ -1576,7 +1576,7 @@ length = ast_expr(vars, cp2, count); if (length) { - ast_log(LOG_DEBUG, "Expression result is '%s'\n", cp2); + ast_log(LOG_DEBUG, "Expression result is '%s' - we're at pos %d in '%s'\n", cp2, whereweare - cp1, cp1); count -= length; cp2 += length; }