aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eolian/database_validate.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-20 17:05:22 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-03-20 17:34:51 +0100
commita1ae5cd918776ba3661e9ade588231f3b2a0db4e (patch)
treeff704bf400ce29b43de27db5b108a36cfe077a91 /src/lib/eolian/database_validate.c
parentefl_ui_clock: Fix wrong target to compare with. (diff)
downloadefl-a1ae5cd918776ba3661e9ade588231f3b2a0db4e.tar.gz
eolian: use new error logging for all recoverable errors
Diffstat (limited to 'src/lib/eolian/database_validate.c')
-rw-r--r--src/lib/eolian/database_validate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 3ca36da923..8dfc23c3de 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -38,8 +38,8 @@ _validate_docstr(const Eolian_Unit *src, Eina_Stringshare *str, const Eolian_Obj
if (eolian_doc_token_ref_resolve(&tok, src, NULL, NULL) == EOLIAN_OBJECT_UNKNOWN)
{
char *refn = eolian_doc_token_text_get(&tok);
- _eolian_log_line(info->file, info->line, info->column,
- "failed validating reference '%s'", refn);
+ eolian_state_log_obj(info->unit->state, info,
+ "failed validating reference '%s'", refn);
free(refn);
ret = EINA_FALSE;
break;
@@ -116,7 +116,7 @@ _ef_map_cb(const Eina_Hash *hash EINA_UNUSED, const void *key EINA_UNUSED,
static Eina_Bool
_obj_error(const Eolian_Object *o, const char *msg)
{
- _eolian_log_line(o->file, o->line, o->column, "%s", msg);
+ eolian_state_log_obj(o->unit->state, o, "%s", msg);
return EINA_FALSE;
}
@@ -467,7 +467,7 @@ _get_impl_class(const Eolian_Class *cl, const char *cln)
}
#define _eo_parser_log(_base, ...) \
- _eolian_log_line((_base)->file, (_base)->line, (_base)->column, __VA_ARGS__)
+ eolian_state_log_obj((_base)->unit->state, (_base), __VA_ARGS__)
static Eina_Bool
_db_fill_implement(Eolian_Class *cl, Eolian_Implement *impl)