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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-07-11T19:38:24+02:00

htable: do not print item name before is computed

---

Modified: src/modules/htable/ht_var.c

---

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

---

diff --git a/src/modules/htable/ht_var.c b/src/modules/htable/ht_var.c
index e79c7869ee5..4d7707f958b 100644
--- a/src/modules/htable/ht_var.c
+++ b/src/modules/htable/ht_var.c
@@ -38,8 +38,8 @@ int pv_get_ht_cell(struct sip_msg *msg, pv_param_t *param, 
pv_value_t *res)
        if(hpv->ht == NULL) {
                hpv->ht = ht_get_table(&hpv->htname);
                if(hpv->ht == NULL) {
-                       LM_ERR("htable not found for getting 
$sht(%.*s=>%.*s)\n",
-                                       hpv->htname.len, hpv->htname.s, 
htname.len, htname.s);
+                       LM_ERR("htable not found for getting $sht(%.*s=>...)\n",
+                                       hpv->htname.len, hpv->htname.s);
                        return pv_get_null(msg, param, res);
                }
        }
@@ -77,8 +77,8 @@ int pv_set_ht_cell(
        if(hpv->ht == NULL)
                hpv->ht = ht_get_table(&hpv->htname);
        if(hpv->ht == NULL) {
-               LM_ERR("htable not found for setting $sht(%.*s=>%.*s)\n",
-                               hpv->htname.len, hpv->htname.s, htname.len, 
htname.s);
+               LM_ERR("htable not found for setting $sht(%.*s=>...)\n",
+                               hpv->htname.len, hpv->htname.s);
                return -1;
        }
 

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to