Do not print filename twice if plugin loading fails, dlerror() contains the filename

This commit is contained in:
Martin Willi
2010-05-05 11:16:32 +02:00
parent b019c38fa2
commit c60b69e4bf
+1 -2
View File
@@ -118,8 +118,7 @@ static plugin_t* load_plugin(private_plugin_loader_t *this,
handle = dlopen(file, RTLD_LAZY);
if (handle == NULL)
{
DBG1(DBG_LIB, "plugin '%s': failed to load '%s' - %s", name, file,
dlerror());
DBG1(DBG_LIB, "plugin '%s' failed to load: %s", name, dlerror());
return NULL;
}
constructor = dlsym(handle, create);