summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-05-09 17:23:20 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:19 -0700
commita3c91d14a9a1de06a9f2c42a1d85804379f7afd0 (patch)
treebb4d82cec919abfa316162312b49a591f338ee86 /src/lib/eo/eo_base_class.c
parentf49ccff71db9eadb6250ffdb169258de057684d3 (diff)
eo: improve message for debugging life cycle issues.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 4c3c409..b7b5f91 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -705,7 +705,7 @@ _efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
705 // Invalidated object can not be bring back to life 705 // Invalidated object can not be bring back to life
706 if (eo_obj->invalidate || eo_obj->is_invalidating) 706 if (eo_obj->invalidate || eo_obj->is_invalidating)
707 { 707 {
708 ERR("Call of efl_parent_set(%p, %p) when object is already invalidated.\n", obj, parent_id); 708 ERR("Call of efl_parent_set(%p, %p) when object of clas '%s' is already invalidated.\n", obj, parent_id, efl_class_name_get(obj));
709 goto err_impossible; 709 goto err_impossible;
710 } 710 }
711 711
@@ -2187,6 +2187,8 @@ err_parent_back:
2187 return; 2187 return;
2188 2188
2189children: 2189children:
2190 ERR("Object %p of type '%s' is still holding child at time of destruction.\n",
2191 obj, efl_class_name_get(obj));
2190 EINA_INLIST_FOREACH_SAFE(pd->children, l, obj_child) 2192 EINA_INLIST_FOREACH_SAFE(pd->children, l, obj_child)
2191 { 2193 {
2192 Eo *child; 2194 Eo *child;