summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-19 11:27:41 +0100
committerTom Hacohen <tom@stosb.com>2016-05-20 10:25:00 +0100
commitc450efdcde1c11b60c9567c70a349134fa9534fc (patch)
treea5809e179016a24439f02d3a67f2b86df2f5aa83
parente1efe2e651ac1c475be27729f212445c8cb3486a (diff)
Eo: Improve error message when overriding functions.
-rw-r--r--src/lib/eo/eo.c2
-rw-r--r--src/tests/eo/suite/eo_test_class_errors.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 48669a7d1e..08de539a97 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -140,7 +140,7 @@ _vtable_func_set(_Eo_Class *klass, Eo_Op op, eo_op_func_type func)
140 if (fsrc->src == klass) 140 if (fsrc->src == klass)
141 { 141 {
142 const _Eo_Class *op_kls = _eo_op_class_get(op); 142 const _Eo_Class *op_kls = _eo_op_class_get(op);
143 ERR("Class '%s': Overriding func %p for op %d (%s) with %p.", 143 ERR("Class '%s': Overriding already set func %p for op %d (%s) with %p.",
144 klass->desc->name, fsrc->func, op, op_kls->desc->name, func); 144 klass->desc->name, fsrc->func, op, op_kls->desc->name, func);
145 return EINA_FALSE; 145 return EINA_FALSE;
146 } 146 }
diff --git a/src/tests/eo/suite/eo_test_class_errors.c b/src/tests/eo/suite/eo_test_class_errors.c
index 8155c5ded6..276c6d7785 100644
--- a/src/tests/eo/suite/eo_test_class_errors.c
+++ b/src/tests/eo/suite/eo_test_class_errors.c
@@ -329,7 +329,7 @@ START_TEST(eo_dich_func_override)
329 NULL 329 NULL
330 }; 330 };
331 331
332 TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding func %p for op %d (%s) with %p."); 332 TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding already set func %p for op %d (%s) with %p.");
333 klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); 333 klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
334 fail_if(klass); 334 fail_if(klass);
335 fail_unless(ctx.did); 335 fail_unless(ctx.did);