aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-05-05 11:15:10 +0200
committerMartin Willi <martin@revosec.ch>2010-05-05 11:16:32 +0200
commitc60b69e4bfa2e6c0563da26a725c438052302962 (patch)
tree1b726d5f919fd4ae2d6486b5b5c68243a8ee42d0 /src
parentb019c38fa2398d37c032fbca109472c519dcb7e3 (diff)
downloadstrongswan-c60b69e4bfa2e6c0563da26a725c438052302962.tar.bz2
strongswan-c60b69e4bfa2e6c0563da26a725c438052302962.tar.xz
Do not print filename twice if plugin loading fails, dlerror() contains the filename
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/plugin_loader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c
index cad279a9d..336d0bc02 100644
--- a/src/libstrongswan/plugins/plugin_loader.c
+++ b/src/libstrongswan/plugins/plugin_loader.c
@@ -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);