X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.c;h=fdc0425b25d393bb23d02542e2b383fff99a4298;hb=3f2f61c7d74d9204405a4b0c21390451c98665a7;hp=e611b8cec2067c06c9f93fd053bfe24973c80d8b;hpb=4e51eefd95e80f90eae602958713c9c630659ce7;p=collectd.git diff --git a/src/plugin.c b/src/plugin.c index e611b8ce..fdc0425b 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -148,14 +148,14 @@ 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); + ERROR ("lt_dlopen (%s) failed: %s", file, error); + fprintf (stderr, "lt_dlopen (%s) failed: %s\n", file, error); return (1); } if ((reg_handle = (void (*) (void)) lt_dlsym (dlh, "module_register")) == NULL) { - WARNING ("Couldn't find symbol ``module_register'' in ``%s'': %s\n", + WARNING ("Couldn't find symbol `module_register' in `%s': %s\n", file, lt_dlerror ()); lt_dlclose (dlh); return (-1);