convert some printfs to eina error.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Mar 2010 17:30:59 +0000 (17:30 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 25 Mar 2010 17:30:59 +0000 (17:30 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@47451 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_calc.c
src/lib/edje_main.c
src/lib/edje_util.c

index 0274ae2..1dafadb 100644 (file)
@@ -1463,7 +1463,7 @@ _edje_box_recalc_apply(Edje *ed __UNUSED__, Edje_Real_Part *ep, Edje_Calc_Params
        if ((!chosen_desc->box.alt_layout) ||
            (!_edje_box_layout_find(chosen_desc->box.alt_layout, &layout, &data, &free_data)))
          {
-            ERR("ERROR: box layout '%s' (fallback '%s') not available, using horizontal.",
+            ERR("box layout '%s' (fallback '%s') not available, using horizontal.",
                 chosen_desc->box.layout, chosen_desc->box.alt_layout);
             layout = evas_object_box_layout_horizontal;
             free_data = NULL;
index 43907b9..ea7e2cf 100644 (file)
@@ -100,7 +100,7 @@ edje_init(void)
                                         sizeof (Edje_Real_Part), 128);
    if (!_edje_real_part_mp)
      {
-       ERR("ERROR: Mempool for Edje_Real_Part cannot be allocated.\n");
+       ERR("Mempool for Edje_Real_Part cannot be allocated.");
        goto shutdown_eet;
      }
 
@@ -109,7 +109,7 @@ edje_init(void)
                                               sizeof (Edje_Real_Part_State), 256);
    if (!_edje_real_part_state_mp)
      {
-       ERR("ERROR: Mempool for Edje_Real_Part_State cannot be allocated.\n");
+       ERR("Mempool for Edje_Real_Part_State cannot be allocated.");
        goto shutdown_eet;
      }
 
index ed8492d..4d732e8 100644 (file)
@@ -2083,8 +2083,7 @@ edje_object_part_swallow(Evas_Object *obj, const char *part, Evas_Object *obj_sw
    if (!rp) return EINA_FALSE;
    if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
      {
-       fprintf(stderr, "ERROR: cannot unswallow part %s: not swallow type!\n",
-               rp->part->name);
+       ERR("cannot unswallow part %s: not swallow type!", rp->part->name);
        return EINA_FALSE;
      }
    _edje_real_part_swallow(rp, obj_swallow);
@@ -2430,8 +2429,7 @@ edje_object_part_unswallow(Evas_Object *obj __UNUSED__, Evas_Object *obj_swallow
      return;
    if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
      {
-       fprintf(stderr, "ERROR: cannot unswallow part %s: not swallow type!\n",
-               rp->part->name);
+       ERR("cannot unswallow part %s: not swallow type!", rp->part->name);
        return;
      }
    if (rp->swallowed_object == obj_swallow)