summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2015-05-19 12:36:46 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-19 14:17:00 +0200
commitb9cd26c906970d3ccdd7508e2a903a89ef5c630e (patch)
tree2685b6f48023320db03c3f07f60cc65906ae69e2 /src/lib/eina
parent82bb9c9c1e96e2ea51e7b696a38103e1a628d5f9 (diff)
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>
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_module.c b/src/lib/eina/eina_module.c
index fbdeeeb9a2..65c18abf7c 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)
325 325
326 if (!dl_handle) 326 if (!dl_handle)
327 { 327 {
328 WRN("could not dlopen(\"%s\", %s): %s", m->file, dlerror(), 328 ERR("could not dlopen(\"%s\", %s): %s", m->file, dlerror(),
329 (flag == RTLD_NOW) ? "RTLD_NOW" : "RTLD_LAZY"); 329 (flag == RTLD_NOW) ? "RTLD_NOW" : "RTLD_LAZY");
330 return EINA_FALSE; 330 return EINA_FALSE;
331 } 331 }
@@ -337,7 +337,7 @@ EAPI Eina_Bool eina_module_load(Eina_Module *m)
337 if ((*initcall)() == EINA_TRUE) 337 if ((*initcall)() == EINA_TRUE)
338 goto ok; 338 goto ok;
339 339
340 WRN("could not find eina's entry symbol %s inside module %s, or the init function failed", 340 ERR("could not find eina's entry symbol %s inside module %s, or the init function failed",
341 EINA_MODULE_SYMBOL_INIT, m->file); 341 EINA_MODULE_SYMBOL_INIT, m->file);
342 dlclose(dl_handle); 342 dlclose(dl_handle);
343 return EINA_FALSE; 343 return EINA_FALSE;