summaryrefslogtreecommitdiff
path: root/legacy/eobj
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2012-06-07 11:32:21 +0000
committerTom Hacohen <tom@stosb.com>2012-06-07 11:32:21 +0000
commitce51bb7a588bd4bcf140119746338e373190d596 (patch)
tree2a4d6465b789e467084d7dcb7126fd6ea93bc38d /legacy/eobj
parent242d324bbae6923a7d7dd75b562bf81c299e1e23 (diff)
Eo: Improved error messages. Show op as hex.
SVN revision: 71803
Diffstat (limited to 'legacy/eobj')
-rw-r--r--legacy/eobj/lib/eo.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/eobj/lib/eo.c b/legacy/eobj/lib/eo.c
index 0e55e17976..fcfbfdfb04 100644
--- a/legacy/eobj/lib/eo.c
+++ b/legacy/eobj/lib/eo.c
@@ -308,7 +308,7 @@ _eo_kls_itr_next(Eo_Kls_Itr *cur, Eo_Op op)
308 if (cur->op != op) 308 if (cur->op != op)
309 { 309 {
310 Eo_Op node_op = cur->op; 310 Eo_Op node_op = cur->op;
311 ERR("Called with op %d ('%s') while expecting: %d ('%s'). This probaly means you called eo_*_super functions from a wrong place.", 311 ERR("Called with op %x ('%s') while expecting: %x ('%s'). This probaly means you called eo_*_super functions from a wrong place.",
312 op, _eo_op_id_name_get(op), 312 op, _eo_op_id_name_get(op),
313 node_op, _eo_op_id_name_get(node_op)); 313 node_op, _eo_op_id_name_get(node_op));
314 return NULL; 314 return NULL;
@@ -386,13 +386,13 @@ _eo_op_internal(Eo *obj, Eo_Op_Type op_type, Eo_Op op, va_list *p_list)
386 { 386 {
387 if (op_desc->op_type == EO_OP_TYPE_CLASS) 387 if (op_desc->op_type == EO_OP_TYPE_CLASS)
388 { 388 {
389 ERR("Tried calling a class op '%s' (%d) from a non-class context.", (op_desc) ? op_desc->name : NULL, op); 389 ERR("Tried calling a class op '%s' (%x) from a non-class context.", (op_desc) ? op_desc->name : NULL, op);
390 return EINA_FALSE; 390 return EINA_FALSE;
391 } 391 }
392 else if ((op_type == EO_OP_TYPE_CONST) && 392 else if ((op_type == EO_OP_TYPE_CONST) &&
393 (op_desc->op_type != EO_OP_TYPE_CONST)) 393 (op_desc->op_type != EO_OP_TYPE_CONST))
394 { 394 {
395 ERR("Tried calling non-const or non-existant op '%s' (%d) from a const (query) function.", (op_desc) ? op_desc->name : NULL, op); 395 ERR("Tried calling non-const or non-existant op '%s' (%x) from a const (query) function.", (op_desc) ? op_desc->name : NULL, op);
396 return EINA_FALSE; 396 return EINA_FALSE;
397 } 397 }
398 } 398 }
@@ -498,7 +498,7 @@ _eo_class_op_internal(Eo_Class *klass, Eo_Op op, va_list *p_list)
498 { 498 {
499 if (op_desc->op_type != EO_OP_TYPE_CLASS) 499 if (op_desc->op_type != EO_OP_TYPE_CLASS)
500 { 500 {
501 ERR("Tried calling an instant op '%s' (%d) from a class context.", (op_desc) ? op_desc->name : NULL, op); 501 ERR("Tried calling an instance op '%s' (%x) from a class context.", (op_desc) ? op_desc->name : NULL, op);
502 return EINA_FALSE; 502 return EINA_FALSE;
503 } 503 }
504 } 504 }
@@ -766,7 +766,7 @@ eo_class_funcs_set(Eo_Class *klass, const Eo_Op_Func_Description *func_descs)
766 } 766 }
767 else 767 else
768 { 768 {
769 ERR("Set function's op type (%d) is different than the one in the op description (%d) for op '%s' in class '%s'. Func index: %d", 769 ERR("Set function's op type (%x) is different than the one in the op description (%d) for op '%s' in class '%s'. Func index: %d",
770 itr->op_type, 770 itr->op_type,
771 (op_desc) ? op_desc->op_type : EO_OP_TYPE_REGULAR, 771 (op_desc) ? op_desc->op_type : EO_OP_TYPE_REGULAR,
772 (op_desc) ? op_desc->name : NULL, 772 (op_desc) ? op_desc->name : NULL,
@@ -838,11 +838,11 @@ _eo_class_check_op_descs(const Eo_Class *klass, Eo_Class_Id id)
838 { 838 {
839 if (itr->name) 839 if (itr->name)
840 { 840 {
841 ERR("Wrong order in Ops description for class '%s'. Expected %d and got %d", desc->name, i, itr->sub_op); 841 ERR("Wrong order in Ops description for class '%s'. Expected %x and got %x", desc->name, i, itr->sub_op);
842 } 842 }
843 else 843 else
844 { 844 {
845 ERR("Found too few Ops description for class '%s'. Expected %d descriptions, but found %d.", desc->name, desc->ops.count, i); 845 ERR("Found too few Ops description for class '%s'. Expected %x descriptions, but found %x.", desc->name, desc->ops.count, i);
846 } 846 }
847 return EINA_FALSE; 847 return EINA_FALSE;
848 } 848 }