From: Martin Willi Date: Wed, 5 May 2010 09:15:10 +0000 (+0200) Subject: Do not print filename twice if plugin loading fails, dlerror() contains the filename X-Git-Tag: 4.4.1~289 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c60b69e4bfa2e6c0563da26a725c438052302962;p=thirdparty%2Fstrongswan.git Do not print filename twice if plugin loading fails, dlerror() contains the filename --- diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index cad279a9de..336d0bc024 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);