make sub-object delete failure messages useful
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 5 Dec 2011 03:26:19 +0000 (03:26 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 5 Dec 2011 03:26:19 +0000 (03:26 +0000)
SVN revision: 65881

src/lib/elm_widget.c

index 2744bea..1c038f2 100644 (file)
@@ -971,9 +971,10 @@ elm_widget_sub_object_del(Evas_Object *obj,
    if (sobj_parent != obj)
      {
         static int abort_on_warn = -1;
-        ERR("removing sub object %p from parent %p, "
+        ERR("removing sub object %p (%s) from parent %p (%s), "
             "but elm-parent is different %p!",
-            sobj, obj, sobj_parent);
+            sobj, elm_widget_type_get(sobj), obj, elm_widget_type_get(obj),
+            sobj_parent);
         if (EINA_UNLIKELY(abort_on_warn == -1))
           {
              if (getenv("ELM_ERROR_ABORT")) abort_on_warn = 1;