[sr-dev] git:master:a85bdf58: core: more details on error log on failed comp_num() expression

Daniel-Constantin Mierla miconda at gmail.com
Wed Jan 15 17:07:33 CET 2020


Module: kamailio
Branch: master
Commit: a85bdf58e3f1933a4a1d231b5de4fd9cf1393366
URL: https://github.com/kamailio/kamailio/commit/a85bdf58e3f1933a4a1d231b5de4fd9cf1393366

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-01-15T17:06:36+01:00

core: more details on error log on failed comp_num() expression

---

Modified: src/core/route.c

---

Diff:  https://github.com/kamailio/kamailio/commit/a85bdf58e3f1933a4a1d231b5de4fd9cf1393366.diff
Patch: https://github.com/kamailio/kamailio/commit/a85bdf58e3f1933a4a1d231b5de4fd9cf1393366.patch

---

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;
 	}
 




More information about the sr-dev mailing list