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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2022-11-16T16:49:30+01:00

debugger: switch to long pvar field

---

Modified: src/modules/debugger/debugger_api.c

---

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

---

diff --git a/src/modules/debugger/debugger_api.c 
b/src/modules/debugger/debugger_api.c
index dce2fbb19c9..19586921d46 100644
--- a/src/modules/debugger/debugger_api.c
+++ b/src/modules/debugger/debugger_api.c
@@ -488,7 +488,7 @@ int dbg_cfg_trace(sr_event_param_t *evp)
                                        {
                                                olen = 
snprintf(_dbg_pid_list[process_no].out.buf,
                                                        DBG_CMD_SIZE,
-                                                       "%s : t=int v=%d",
+                                                       "%s : t=int v=%ld",
                                                        pvn.s, val.ri);
                                                if(olen<0)
                                                {
@@ -498,7 +498,7 @@ int dbg_cfg_trace(sr_event_param_t *evp)
                                                
_dbg_pid_list[process_no].out.cmd = DBG_CMD_READ;
                                        } else {
                                                LOG(_dbg_cfgtrace_level,
-                                                               "breakpoint 
eval: %s : t=int v=%d\n",
+                                                               "breakpoint 
eval: %s : t=int v=%ld\n",
                                                                pvn.s, val.ri
                                                        );
                                        }
@@ -1706,7 +1706,7 @@ int _dbg_log_assign_action_pvar(struct sip_msg* msg, 
struct lvalue* lv)
        if(value.flags&(PV_VAL_NULL|PV_VAL_EMPTY|PV_VAL_NONE)){
                LM_DBG("%.*s: $null\n", name->len, name->s);
        }else if(value.flags&(PV_VAL_INT)){
-               LM_DBG("%.*s:%d\n", name->len, name->s, value.ri);
+               LM_DBG("%.*s:%ld\n", name->len, name->s, value.ri);
        }else if(value.flags&(PV_VAL_STR)){
                LM_DBG("%.*s:\"%.*s\"\n", name->len, name->s, value.rs.len, 
value.rs.s);
        }


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to