jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=76bc13530a7e6b8725b036a5ab76f890499ef0d6
commit 76bc13530a7e6b8725b036a5ab76f890499ef0d6 Author: Jean-Philippe Andre <jp.an...@samsung.com> Date: Thu Sep 7 09:51:09 2017 +0900 eo: Add class name to error log (unref) --- src/lib/eo/eo.c | 3 ++- src/tests/eo/suite/eo_test_class_behaviour_errors.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 489d042253..b1e56481ea 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -1838,7 +1838,8 @@ efl_unref(const Eo *obj_id) { if (obj->user_refcount < 0) { - ERR("Obj:%p. User refcount (%d) < 0. Too many unrefs.", obj, obj->user_refcount); + ERR("Obj:%s@%p. User refcount (%d) < 0. Too many unrefs.", + obj->klass->desc->name, obj_id, obj->user_refcount); _eo_log_obj_report((Eo_Id)obj_id, EINA_LOG_LEVEL_ERR, __FUNCTION__, __FILE__, __LINE__); EO_OBJ_DONE(obj_id); return; diff --git a/src/tests/eo/suite/eo_test_class_behaviour_errors.c b/src/tests/eo/suite/eo_test_class_behaviour_errors.c index 43d72d4301..98ee81e462 100644 --- a/src/tests/eo/suite/eo_test_class_behaviour_errors.c +++ b/src/tests/eo/suite/eo_test_class_behaviour_errors.c @@ -53,7 +53,7 @@ START_TEST(efl_destructor_unref) Eo *obj = efl_add(klass, NULL); fail_if(!obj); - TEST_EO_ERROR("efl_unref", "Obj:%p. User refcount (%d) < 0. Too many unrefs."); + TEST_EO_ERROR("efl_unref", "Obj:%s@%p. User refcount (%d) < 0. Too many unrefs."); efl_unref(obj); eina_log_print_cb_set(eina_log_print_cb_stderr, NULL); @@ -84,7 +84,7 @@ START_TEST(efl_destructor_double_del) efl_manual_free_set(obj, EINA_TRUE); fail_if(!obj); - TEST_EO_ERROR("efl_unref", "Obj:%p. User refcount (%d) < 0. Too many unrefs."); + TEST_EO_ERROR("efl_unref", "Obj:%s@%p. User refcount (%d) < 0. Too many unrefs."); efl_del(obj); efl_del(obj); --