path: root/src/lib/evas/canvas/evas_main.c
diff options
authorJean-Philippe Andre <jp.andre@samsung.com>2017-07-14 16:55:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 10:24:03 +0900
commit569ad0bac4590e8a18800741ea2345174c3683f3 (patch)
tree3c5853579dd35760b89bf397ad2e7e2675b4d7db /src/lib/evas/canvas/evas_main.c
parenteo: Add debug_name read-only property to ease debugging (diff)
evas/edje/elm: Override debug_name in core classes
This is really only a demonstration of what kind of information we can print with efl_debug_name_get(). Hopefully this can help debugging with printf/ERR logs and even help with live debugging inside gdb. This shouldn't be used for other purposes than debugging, as the exact string format is not defined. @feature
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index 1a6f22a337..000f52e08b 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -312,7 +312,10 @@ _evas_canvas_efl_object_destructor(Eo *eo_e, Evas_Public_Data *e)
if ((o->ref > 0) || (efl_ref_get(o->object) > 0))
- ERR("obj(%p, %s) ref count(%d) is bigger than 0. This object couldn't be deleted", o, o->type, efl_ref_get(o->object));
+ ERR("obj(%s) ref count(%d) is bigger than 0. This "
+ "object couldn't be deleted",
+ efl_debug_name_get(o->object),
+ efl_ref_get(o->object));
unrefs = eina_list_append(unrefs, o->object);