Skip to content

Commit

Permalink
debugger: switch to long pvar field
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 16, 2022
1 parent d1c1366 commit 6be9476
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/debugger/debugger_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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
);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 6be9476

Please sign in to comment.