X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodule.c;h=a77aa736f5f372bb1557c0622ba480b6abf6b90a;hb=1ab818de1d890bf716413090d943858bfef8d3d3;hp=e6012f768223fd3121383b68df1a18f33a06d423;hpb=c432246e06bb83a3d43a6668517486fb6b4b959d;p=lttv.git diff --git a/ltt/branches/poly/lttv/module.c b/ltt/branches/poly/lttv/module.c index e6012f76..a77aa736 100644 --- a/ltt/branches/poly/lttv/module.c +++ b/ltt/branches/poly/lttv/module.c @@ -78,7 +78,9 @@ module_load(const char *name, int argc, char **argv) for(i = 0 ; i < modulesPaths->len ; i++) { pathname = g_module_build_path(modulesPaths->pdata[i],name); - gm = g_module_open(pathname,0); + gm = g_module_open(pathname,G_MODULE_BIND_LAZY); + g_critical("loading module : %s", pathname); + g_critical("module error : %s", g_module_error()); g_free(pathname); if(gm != NULL) break; @@ -88,12 +90,12 @@ module_load(const char *name, int argc, char **argv) if(gm == NULL) { pathname = g_module_build_path(NULL,name); - gm = g_module_open(pathname,0); + gm = g_module_open(pathname,G_MODULE_BIND_LAZY); + g_critical("loading module : %s", pathname); g_free(pathname); } /* Module cannot be found */ - if(gm == NULL) return NULL; /* Check if the module was already opened using the hopefully canonical name @@ -138,7 +140,6 @@ LttvModule * lttv_module_load(const char *name, int argc, char **argv) { LttvModule *m = module_load(name, argc, argv); - if(m != NULL) m->load_count++; return m; }