cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=b9cd26c906970d3ccdd7508e2a903a89ef5c630e
commit b9cd26c906970d3ccdd7508e2a903a89ef5c630e Author: Youngbok Shin <youngb.s...@samsung.com> Date: Tue May 19 12:36:46 2015 +0200 eina: print error message when eina_module_load() fails. Summary: When dlopen() fails, eina_module_load() print error information using dlerror(). But, it is printed with WRN. If EINA_LOG_LEVEL is lower than WRN, application developer is hard to see which has a problem. Reviewers: woohyun, Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2536 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/lib/eina/eina_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eina/eina_module.c b/src/lib/eina/eina_module.c index fbdeeeb..65c18ab 100644 --- a/src/lib/eina/eina_module.c +++ b/src/lib/eina/eina_module.c @@ -325,7 +325,7 @@ EAPI Eina_Bool eina_module_load(Eina_Module *m) if (!dl_handle) { - WRN("could not dlopen(\"%s\", %s): %s", m->file, dlerror(), + ERR("could not dlopen(\"%s\", %s): %s", m->file, dlerror(), (flag == RTLD_NOW) ? "RTLD_NOW" : "RTLD_LAZY"); return EINA_FALSE; } @@ -337,7 +337,7 @@ EAPI Eina_Bool eina_module_load(Eina_Module *m) if ((*initcall)() == EINA_TRUE) goto ok; - WRN("could not find eina's entry symbol %s inside module %s, or the init function failed", + ERR("could not find eina's entry symbol %s inside module %s, or the init function failed", EINA_MODULE_SYMBOL_INIT, m->file); dlclose(dl_handle); return EINA_FALSE; --