Module: kamailio Branch: 5.3 Commit: f61b2de38b10e3eb23b01843aacc2b739b7016d8 URL: https://github.com/kamailio/kamailio/commit/f61b2de38b10e3eb23b01843aacc2b73...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-01-16T09:27:15+01:00
core: more details on error log on failed comp_num() expression
(cherry picked from commit a85bdf58e3f1933a4a1d231b5de4fd9cf1393366)
---
Modified: src/core/route.c
---
Diff: https://github.com/kamailio/kamailio/commit/f61b2de38b10e3eb23b01843aacc2b73... Patch: https://github.com/kamailio/kamailio/commit/f61b2de38b10e3eb23b01843aacc2b73...
---
diff --git a/src/core/route.c b/src/core/route.c index 4aa7f25f76..ad2fa66e64 100644 --- a/src/core/route.c +++ b/src/core/route.c @@ -1212,7 +1212,8 @@ inline static int comp_num(int op, long left, int rtype, union exp_op* r, } break; default: - LM_CRIT("Invalid right operand (%d)\n", rtype); + LM_CRIT("Invalid right operand (rtype: %d expr-op: %d lval: %ld)\n", + rtype, op, left); return E_BUG; }