Eolian: fix prints
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Tue, 29 Apr 2014 11:20:10 +0000 (14:20 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Wed, 30 Apr 2014 11:07:09 +0000 (14:07 +0300)
src/lib/eolian/eolian_database.c

index f72b3f0..76d2ecd 100644 (file)
@@ -505,7 +505,7 @@ eolian_class_function_find_by_name(const char *class_name, const char *func_name
    Eina_List *itr;
    Eolian_Function foo_id;
    Class_desc *desc = _class_get(class_name);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(desc, NULL);
+   if (!desc) return NULL;
 
    if (f_type == EOLIAN_UNRESOLVED || f_type == EOLIAN_METHOD)
       EINA_LIST_FOREACH(desc->methods, itr, foo_id)
@@ -536,6 +536,7 @@ eolian_class_function_find_by_name(const char *class_name, const char *func_name
           }
      }
 
+   ERR("Function %s not found in class %s", func_name, class_name);
    return NULL;
 }