summaryrefslogtreecommitdiff
path: root/main/cdr.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-08-30 15:15:06 +0000
committerJoshua Colp <jcolp@digium.com>2006-08-30 15:15:06 +0000
commit3028eb1c15015719cc31042b7dba6b647273304f (patch)
treef59acfd1c06c409382c61f36d2ff54cbdfcdfe24 /main/cdr.c
parent0855df6a5abbafa26a1d3c4570a0e7485797009c (diff)
Print what read-only variable is being set so that the user doesn't have to guess and figure it out or look at the list in cdr.c and match it up (issue #7831 reported by sedwards)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cdr.c')
-rw-r--r--main/cdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cdr.c b/main/cdr.c
index 93c63751f..04d7ea833 100644
--- a/main/cdr.c
+++ b/main/cdr.c
@@ -290,7 +290,7 @@ int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, const char *value, int
for(x = 0; cdr_readonly_vars[x]; x++) {
if (!strcasecmp(name, cdr_readonly_vars[x])) {
- ast_log(LOG_ERROR, "Attempt to set a read-only variable!.\n");
+ ast_log(LOG_ERROR, "Attempt to set the '%s' read-only variable!.\n", name);
return -1;
}
}