Browse code

core: increased verbosity of error log message

- added size information to an error log message of the config
framework

Nils Ohlmeier authored on 19/05/2009 00:18:59
Showing 1 changed files
... ...
@@ -130,9 +130,9 @@ int cfg_declare(char *group_name, cfg_def_t *def, void *values, int def_size,
130 130
 
131 131
 	/* minor validation */
132 132
 	if (size != def_size) {
133
-		LOG(L_ERR, "ERROR: register_cfg_def(): the specified size of the config "
134
-			"structure does not equal with the calculated size, check whether "
135
-			"the variable types are correctly defined!\n");
133
+		LOG(L_ERR, "ERROR: register_cfg_def(): the specified size (%i) of the config "
134
+			"structure does not equal with the calculated size (%i), check whether "
135
+			"the variable types are correctly defined!\n", def_size, size);
136 136
 		goto error;
137 137
 	}
138 138