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 <cedric@osg.samsung.com>
This commit is contained in:
Youngbok Shin 2015-05-19 12:36:46 +02:00 committed by Cedric BAIL
parent 82bb9c9c1e
commit b9cd26c906
1 changed files with 2 additions and 2 deletions

View File

@ -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;