Do not print filename twice if plugin loading fails, dlerror() contains the filename
This commit is contained in:
@@ -118,8 +118,7 @@ static plugin_t* load_plugin(private_plugin_loader_t *this,
|
|||||||
handle = dlopen(file, RTLD_LAZY);
|
handle = dlopen(file, RTLD_LAZY);
|
||||||
if (handle == NULL)
|
if (handle == NULL)
|
||||||
{
|
{
|
||||||
DBG1(DBG_LIB, "plugin '%s': failed to load '%s' - %s", name, file,
|
DBG1(DBG_LIB, "plugin '%s' failed to load: %s", name, dlerror());
|
||||||
dlerror());
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
constructor = dlsym(handle, create);
|
constructor = dlsym(handle, create);
|
||||||
|
|||||||
Reference in New Issue
Block a user