diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-14 10:32:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-14 10:32:12 +0000 |
commit | 088398741db4fcc1d8e9c7adcf4a7a54ca59080a (patch) | |
tree | 27877e4515a8a956037ef11bf172e8f19351ef17 /epan | |
parent | e390d7e0cc3cb6247f5198bc81baff90b754051c (diff) | |
download | wireshark-088398741db4fcc1d8e9c7adcf4a7a54ca59080a.tar.gz wireshark-088398741db4fcc1d8e9c7adcf4a7a54ca59080a.tar.bz2 wireshark-088398741db4fcc1d8e9c7adcf4a7a54ca59080a.zip |
From Ruud Linders: report errors from "g_module_open()".
svn path=/trunk/; revision=5463
Diffstat (limited to 'epan')
-rw-r--r-- | epan/plugins.c | 12 |
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; } |