From e5eed1b7c318ea7215ede28ebc91b83120d34a85 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 22 May 2015 13:20:56 -0400 Subject: [PATCH] eina: change module init error message to an info message a module deciding to return false is a valid non-error case for many modules. the module can print an error if an error occurs --- src/lib/eina/eina_module.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/eina/eina_module.c b/src/lib/eina/eina_module.c index 65c18ab..9bc73b6 100644 --- a/src/lib/eina/eina_module.c +++ b/src/lib/eina/eina_module.c @@ -72,6 +72,11 @@ static int EINA_MODULE_LOG_DOM = -1; #endif #define WRN(...) EINA_LOG_DOM_WARN(EINA_MODULE_LOG_DOM, __VA_ARGS__) +#ifdef INF +#undef INF +#endif +#define INF(...) EINA_LOG_DOM_INFO(EINA_MODULE_LOG_DOM, __VA_ARGS__) + #ifdef DBG #undef DBG #endif @@ -337,8 +342,7 @@ EAPI Eina_Bool eina_module_load(Eina_Module *m) if ((*initcall)() == EINA_TRUE) goto ok; - ERR("could not find eina's entry symbol %s inside module %s, or the init function failed", - EINA_MODULE_SYMBOL_INIT, m->file); + INF("init function returned false for %s", m->file); dlclose(dl_handle); return EINA_FALSE; ok: -- 2.7.4