From: Sebastian Harl Date: Wed, 12 Sep 2007 08:55:35 +0000 (+0200) Subject: plugin.c: Print lt_dlopen() error messages to STDERR as well. X-Git-Tag: collectd-4.0.8~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3d8b009c04400cc4e7075e49da38774867b29102;p=collectd.git plugin.c: Print lt_dlopen() error messages to STDERR as well. This makes sure the user will get the message on the terminal in any case. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/plugin.c b/src/plugin.c index fe7a9e5c..e985dac6 100644 --- 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);