aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-14 10:32:12 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-14 10:32:12 +0000
commita5a0bb7ddfca2df49c01fe1955ab8f4f6037b335 (patch)
tree27877e4515a8a956037ef11bf172e8f19351ef17 /epan
parentd904fc8512a93bb7ccd81e127855c13d10dfb97d (diff)
From Ruud Linders: report errors from "g_module_open()".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5463 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r--epan/plugins.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/epan/plugins.c b/epan/plugins.c
index 9e19311027..d9b14292ec 100644
--- a/epan/plugins.c
+++ b/epan/plugins.c
@@ -1,7 +1,7 @@
/* plugins.c
* plugin routines
*
- * $Id: plugins.c,v 1.52 2002/05/05 00:34:11 guy Exp $
+ * $Id: plugins.c,v 1.53 2002/05/14 10:32:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -197,7 +197,12 @@ plugins_scan_dir(const char *dirname)
snprintf(filename, FILENAME_LEN, "%s" G_DIR_SEPARATOR_S "%s",
dirname, file->d_name);
- if ((handle = g_module_open(filename, 0)) == NULL) continue;
+ if ((handle = g_module_open(filename, 0)) == NULL)
+ {
+ g_warning("Couldn't load module %s: %s", filename,
+ g_module_error());
+ continue;
+ }
name = (gchar *)file->d_name;
if (g_module_symbol(handle, "version", (gpointer*)&version) == FALSE)
{
@@ -221,7 +226,8 @@ plugins_scan_dir(const char *dirname)
*/
if (!g_module_symbol(handle, "plugin_init", (gpointer*)&init))
{
- g_warning("The plugin %s has a plugin_reg_handoff symbol but no plugin_init routine", name);
+ g_warning("The plugin %s has a plugin_reg_handoff symbol but no plugin_init routine",
+ name, filename);
g_module_close(handle);
continue;
}