summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea476dd)
raw | patch | inline | side by side (parent: ea476dd)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 19 Nov 2007 23:30:11 +0000 (00:30 +0100) | ||
committer | Florian Forster <octo@noris.net> | |
Tue, 20 Nov 2007 08:30:40 +0000 (08:30 +0000) |
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index b289fa070c88ed5c38753b82074cd3fa122cd95b..0d9474a05fad59e3f5dc1c0fa89039f4fce64eb6 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
perl_threads->tail = perl_threads->head;
if (NULL == (perl_threads->head->interp = perl_alloc ())) {
- log_err ("module_register: Not enough memory.");
+ log_err ("init_pi: Not enough memory.");
exit (3);
}
PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
if (0 != perl_parse (aTHX_ xs_init, argc, argv, NULL)) {
- log_err ("module_register: Unable to bootstrap Collectd.");
+ log_err ("init_pi: Unable to bootstrap Collectd.");
exit (1);
}
char *value = NULL;
if ((0 != ci->children_num) || (1 != ci->values_num)
- || (OCONFIG_TYPE_STRING != ci->values[0].type))
+ || (OCONFIG_TYPE_STRING != ci->values[0].type)) {
+ log_err ("LoadPlugin expects a single string argument.");
return 1;
+ }
value = ci->values[0].value.string;
char *value = NULL;
if ((0 != ci->children_num) || (1 != ci->values_num)
- || (OCONFIG_TYPE_STRING != ci->values[0].type))
+ || (OCONFIG_TYPE_STRING != ci->values[0].type)) {
+ log_err ("BaseName expects a single string argument.");
return 1;
+ }
value = ci->values[0].value.string;
char *value = NULL;
if ((0 != ci->children_num) || (1 != ci->values_num)
- || (OCONFIG_TYPE_STRING != ci->values[0].type))
+ || (OCONFIG_TYPE_STRING != ci->values[0].type)) {
+ log_err ("EnableDebugger expects a single string argument.");
return 1;
+ }
value = ci->values[0].value.string;
char *value = NULL;
if ((0 != ci->children_num) || (1 != ci->values_num)
- || (OCONFIG_TYPE_STRING != ci->values[0].type))
+ || (OCONFIG_TYPE_STRING != ci->values[0].type)) {
+ log_err ("IncludeDir expects a single string argument.");
return 1;
+ }
value = ci->values[0].value.string;