From: Florian Forster Date: Thu, 21 Aug 2008 14:08:55 +0000 (+0200) Subject: src/plugin.c: Include the shared object when reporting errors with `lt_dlopen'. X-Git-Tag: collectd-4.3.4~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c4034226f6b8dd9846fa52903f93fa17f868e25;p=collectd.git src/plugin.c: Include the shared object when reporting errors with `lt_dlopen'. --- diff --git a/src/plugin.c b/src/plugin.c index f1333f1d..1715cac8 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -146,14 +146,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);