X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fplugin.c;h=8f1974ff25dfa13d1759e84c3c973bf119be4ef3;hb=5b5f7f4e3dd28d9e41469c331f3f9f6a09e3147b;hp=b3feb17a6f59cbf83180dc13117088c54654a2c8;hpb=2aaabc7592009a1f6e2d6033a79d3041b05ab500;p=collectd.git diff --git a/src/plugin.c b/src/plugin.c index b3feb17a..8f1974ff 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -149,14 +149,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);