diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-09-07 09:51:09 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-09-13 09:57:05 +0900 |
commit | 76bc13530a7e6b8725b036a5ab76f890499ef0d6 (patch) | |
tree | 9199a9585d16627e07f33dc2b445f2b8d278eb12 | |
parent | a73e4c7c80cc149e5b3eb5211060010b1626b462 (diff) | |
download | efl-76bc13530a7e6b8725b036a5ab76f890499ef0d6.tar.gz |
eo: Add class name to error log (unref)
-rw-r--r-- | src/lib/eo/eo.c | 3 | ||||
-rw-r--r-- | 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); |