Enchance debug info
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 8 Dec 2014 15:00:10 +0000 (16:00 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Mon, 8 Dec 2014 15:00:10 +0000 (16:00 +0100)
src/flat_navi.c
src/object_cache.c

index 4298af5..eea75ce 100644 (file)
@@ -224,10 +224,11 @@ debug(FlatNaviContext *ctx)
    AtspiAccessible *obj;
    int i, l = 0;
 
+   DEBUG("===============================");
    EINA_LIST_FOREACH(ctx->lines, l1, line)
      {
         i = 0;
-        DEBUG("Line %d", l);
+        DEBUG("==== Line %d ====", l);
         EINA_LIST_FOREACH(line, l2, obj)
           {
              char *name = atspi_accessible_get_name(obj, NULL);
@@ -236,7 +237,9 @@ debug(FlatNaviContext *ctx)
              if (name) g_free(name);
              if (role) g_free(role);
           }
+        l++;
      }
+   DEBUG("===============================");
 }
 
 FlatNaviContext *flat_navi_context_create(AtspiAccessible *root)
index 0b762d1..d88ca91 100644 (file)
@@ -99,7 +99,6 @@ _cache_item_construct(AtspiAccessible *obj)
    }
    else {
       ret->bounds = atspi_component_get_extents(comp, ATSPI_COORD_TYPE_SCREEN, NULL);
-      DEBUG("Extents: %d %d %d %d", ret->bounds->x, ret->bounds->y, ret->bounds->width, ret->bounds->height);
       g_object_unref(comp);
    }