Module: sip-router
Branch: master
Commit: 8416baf77f30258f34d2de0aa169ad5bb8841561
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8416baf…
Author: Nils Ohlmeier <nils(a)iptel.org>
Committer: Nils Ohlmeier <nils(a)iptel.org>
Date: Tue May 19 02:18:59 2009 +0200
core: increased verbosity of error log message
- added size information to an error log message of the config
framework
---
cfg/cfg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cfg/cfg.c b/cfg/cfg.c
index c52323c..d6b803b 100644
--- a/cfg/cfg.c
+++ b/cfg/cfg.c
@@ -130,9 +130,9 @@ int cfg_declare(char *group_name, cfg_def_t *def, void *values, int
def_size,
/* minor validation */
if (size != def_size) {
- LOG(L_ERR, "ERROR: register_cfg_def(): the specified size of the config "
- "structure does not equal with the calculated size, check whether "
- "the variable types are correctly defined!\n");
+ LOG(L_ERR, "ERROR: register_cfg_def(): the specified size (%i) of the config
"
+ "structure does not equal with the calculated size (%i), check whether "
+ "the variable types are correctly defined!\n", def_size, size);
goto error;
}