From f7e0a55d52b552f9dd7e9a259670456996c46339 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Fri, 6 Mar 2020 14:40:04 +0100 Subject: [PATCH] eo: print debug information when a call cannot be resolved that is usefull esp. on parts. Reviewed-by: Mike Blumenkrantz Differential Revision: https://phab.enlightenment.org/D11462 --- src/lib/eo/eo.c | 8 ++++---- src/tests/eo/suite/eo_test_call_errors.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 55479009c8..8ca94bf8fd 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -567,16 +567,16 @@ composite_continue: // If it's a do_super call. if (cur_klass) { - ERR("in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'.", - file, line, func_name, op, main_klass->desc->name, + ERR("in %s:%d: func '%s' (%d) could not be resolved on %s for class '%s' for super of '%s'.", + file, line, func_name, op, efl_debug_name_get(eo_id), main_klass->desc->name, cur_klass->desc->name); goto err; } else { /* we should not be able to take this branch */ - ERR("in %s:%d: func '%s' (%d) could not be resolved for class '%s'.", - file, line, func_name, op, main_klass->desc->name); + ERR("in %s:%d: func '%s' (%d) could not be resolved on %s for class '%s'.", + file, line, func_name, op, efl_debug_name_get(eo_id), main_klass->desc->name); goto err; } diff --git a/src/tests/eo/suite/eo_test_call_errors.c b/src/tests/eo/suite/eo_test_call_errors.c index 5a737a415d..7981ad598a 100644 --- a/src/tests/eo/suite/eo_test_call_errors.c +++ b/src/tests/eo/suite/eo_test_call_errors.c @@ -51,7 +51,7 @@ EFL_START_TEST(eo_op_not_found_in_super) Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL); fail_if(!obj); - TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'."); + TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved on %s for class '%s' for super of '%s'."); simple_a_set(efl_super(obj, SIMPLE_CLASS), 10); fail_unless(ctx.did);