Eo: Improve error message when overriding functions.

This commit is contained in:
Tom Hacohen 2016-05-19 11:27:41 +01:00
parent e1efe2e651
commit c450efdcde
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ _vtable_func_set(_Eo_Class *klass, Eo_Op op, eo_op_func_type func)
if (fsrc->src == klass)
{
const _Eo_Class *op_kls = _eo_op_class_get(op);
ERR("Class '%s': Overriding func %p for op %d (%s) with %p.",
ERR("Class '%s': Overriding already set func %p for op %d (%s) with %p.",
klass->desc->name, fsrc->func, op, op_kls->desc->name, func);
return EINA_FALSE;
}

View File

@ -329,7 +329,7 @@ START_TEST(eo_dich_func_override)
NULL
};
TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding func %p for op %d (%s) with %p.");
TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding already set func %p for op %d (%s) with %p.");
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
fail_if(klass);
fail_unless(ctx.did);