summaryrefslogtreecommitdiff
path: root/navit/plugin.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-11-18 10:31:51 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-11-18 10:31:51 +0000
commitea0bbbbaec714709d3a89207f07a03ea0119d756 (patch)
tree3af20e12a4f72ccff2b3088cfce4536937470572 /navit/plugin.c
parentc13a3745ce8a4110544a1a30faf7b05d8afa365b (diff)
downloadnavit-ea0bbbbaec714709d3a89207f07a03ea0119d756.tar.gz
Add:Core:Added more debugging code
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1733 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/plugin.c')
-rw-r--r--navit/plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/plugin.c b/navit/plugin.c
index aaf31ea5a..bf29184e6 100644
--- a/navit/plugin.c
+++ b/navit/plugin.c
@@ -239,8 +239,10 @@ plugin_new(struct attr *parent, struct attr **attrs) {
we=file_wordexp_new(path_attr->u.str);
count=file_wordexp_get_count(we);
array=file_wordexp_get_array(we);
+ dbg(2,"expanded to %d words\n",count);
for (i = 0 ; i < count ; i++) {
name=array[i];
+ dbg(2,"name[%d]='%s'\n", i, name);
if (! (pl=g_hash_table_lookup(pls->hash, name))) {
pl=plugin_new_from_path(name);
if (! pl) {
@@ -329,6 +331,7 @@ plugin_get_type(enum plugin_type type, const char *type_name, const char *name)
mod_name++;
else
mod_name=pl->name;
+ dbg(2,"compare '%s' with '%s'\n", mod_name, filename);
if (!g_ascii_strncasecmp(mod_name, filename, strlen(filename)) || !g_ascii_strncasecmp(mod_name, corename, strlen(corename))) {
dbg(1, "Loading module \"%s\"\n",pl->name) ;
if (plugin_get_active(pl))