fixing warnings
This commit is contained in:
parent
7eb163e74e
commit
f88f0a8899
|
@ -169,9 +169,16 @@ switch_status_t mg_send_end_of_axn(SuId suId, MgMgcoTransId* transId, MgMgcoCont
|
|||
ctxt.cmdStatus.pres = PRSNT_NODEF;
|
||||
ctxt.cmdStatus.val = CH_CMD_STATUS_END_OF_AXN;
|
||||
|
||||
#ifdef BIT_64
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, SWITCH_LOG_INFO,
|
||||
"mg_send_end_of_axn: Sending END_OF_AXN for transId[%d], peerId[%d], context[type = %s, value = %d]\n",
|
||||
(uint32_t)transId->val, peerId->val, PRNT_MG_CTXT_TYPE(ctxtId->type.val), (uint32_t)ctxtId->val.val);
|
||||
transId->val, peerId->val, PRNT_MG_CTXT_TYPE(ctxtId->type.val), ctxtId->val.val);
|
||||
#else
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, SWITCH_LOG_INFO,
|
||||
"mg_send_end_of_axn: Sending END_OF_AXN for transId[%lu], peerId[%lu], context[type = %s, value = %lu]\n",
|
||||
transId->val, peerId->val, PRNT_MG_CTXT_TYPE(ctxtId->type.val), ctxtId->val.val);
|
||||
|
||||
#endif
|
||||
|
||||
ret = sng_mgco_send_axn_req(suId, &ctxt);
|
||||
|
||||
|
|
|
@ -316,7 +316,11 @@ void mg_util_set_ctxt_string ( MgStr *errTxt, MgMgcoContextId *ctxtId)
|
|||
}
|
||||
else if((ctxtId->type.val == MGT_CXTID_OTHER) && (ctxtId->val.pres != NOTPRSNT))
|
||||
{
|
||||
#ifdef BIT_64
|
||||
sprintf((char*)&errTxt->val[errTxt->len], "%d", ctxtId->val.val);
|
||||
#else
|
||||
sprintf((char*)&errTxt->val[errTxt->len], "%lu", ctxtId->val.val);
|
||||
#endif
|
||||
errTxt->len += cmStrlen((U8*)(&errTxt->val[errTxt->len]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue