plugin-loader: Log message when failing to load plugin
authorTobias Brunner <tobias@strongswan.org>
Thu, 20 Jun 2013 18:33:53 +0000 (20:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 21 Jun 2013 13:13:25 +0000 (15:13 +0200)
src/libstrongswan/plugins/plugin_loader.c

index 828a620..4464871 100644 (file)
@@ -660,6 +660,14 @@ static void load_feature(private_plugin_loader_t *this,
                }
                else
                {
+                       char *name, *provide;
+
+                       name = provided->entry->plugin->get_name(provided->entry->plugin);
+                       provide = plugin_feature_get_string(&provided->feature[0]);
+                       DBG2(DBG_LIB, "feature %s in plugin '%s' failed to load",
+                                provide, name);
+                       free(provide);
+
                        provided->failed = TRUE;
                }
        }