projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plugin.c: Print lt_dlopen() error messages to STDERR as well.
[collectd.git]
/
src
/
plugin.c
diff --git
a/src/plugin.c
b/src/plugin.c
index
fe7a9e5
..
e985dac
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-133,6
+133,7
@@
static int plugin_load_file (char *file)
const char *error = lt_dlerror ();
ERROR ("lt_dlopen failed: %s", error);
+ fprintf (stderr, "lt_dlopen failed: %s\n", error);
return (1);
}
@@
-355,6
+356,10
@@
int plugin_load (const char *type)
ret = 0;
break;
}
+ else
+ {
+ fprintf (stderr, "Unable to load plugin %s.\n", type);
+ }
}
closedir (dh);