diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c b/libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c
index f1403c5c84..6496da388b 100644
--- a/libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c
+++ b/libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c
@@ -3092,9 +3092,9 @@ static ftdm_status_t handle_show_m2ua_profiles(ftdm_stream_handle_t *stream)
len = len + sprintf(buf + len, "\n");
len = len + sprintf(buf + len, " %ld \n", cfm.t.ssta.s.genSta.memSize);
len = len + sprintf(buf + len, " %ld \n", cfm.t.ssta.s.genSta.memAlloc);
- len = len + sprintf(buf + len, " %ld \n", cfm.t.ssta.s.genSta.nmbClusters);
- len = len + sprintf(buf + len, " %ld \n", cfm.t.ssta.s.genSta.nmbPeers);
- len = len + sprintf(buf + len, " %ld \n", cfm.t.ssta.s.genSta.nmbIntf);
+ len = len + sprintf(buf + len, " %d \n", cfm.t.ssta.s.genSta.nmbClusters);
+ len = len + sprintf(buf + len, " %d \n", cfm.t.ssta.s.genSta.nmbPeers);
+ len = len + sprintf(buf + len, " %d \n", cfm.t.ssta.s.genSta.nmbIntf);
len = len + sprintf(buf + len, "\n");
}
@@ -3171,7 +3171,7 @@ static ftdm_status_t handle_show_m2ua_profiles(ftdm_stream_handle_t *stream)
len = len + sprintf(buf + len, "\n");
len = len + sprintf(buf + len," %s \n", PRNT_M2UA_SAP_STATE(cfm.t.ssta.s.sctSapSta.state));
len = len + sprintf(buf + len," %s \n", (cfm.t.ssta.s.sctSapSta.endpOpen)?"END_POINT_OPENED_SUCCESSFULLY":"END_POINT_NOT_OPEN");
- len = len + sprintf(buf + len," %d \n", cfm.t.ssta.s.sctSapSta.spEndpId);
+ len = len + sprintf(buf + len," %ld \n", cfm.t.ssta.s.sctSapSta.spEndpId);
len = len + sprintf(buf + len," %d \n", cfm.t.ssta.s.sctSapSta.nmbPrimRetry);
len = len + sprintf(buf + len, "\n");
}
@@ -3339,8 +3339,8 @@ static ftdm_status_t handle_show_sctp_profiles(ftdm_stream_handle_t *stream)
return FTDM_FAIL;
} else {
len = len + sprintf(buf + len, "\n");
- len = len + sprintf(buf + len, " %d \n",cfm.t.ssta.s.genSta.memSize);
- len = len + sprintf(buf + len, " %d \n",cfm.t.ssta.s.genSta.memAlloc);
+ len = len + sprintf(buf + len, " %ld \n",cfm.t.ssta.s.genSta.memSize);
+ len = len + sprintf(buf + len, " %ld \n",cfm.t.ssta.s.genSta.memAlloc);
len = len + sprintf(buf + len, " %d \n",cfm.t.ssta.s.genSta.nmbAssoc);
len = len + sprintf(buf + len, " %d \n",cfm.t.ssta.s.genSta.nmbEndp);
len = len + sprintf(buf + len, " %d \n",cfm.t.ssta.s.genSta.nmbLocalAddr);
@@ -3430,7 +3430,7 @@ int get_assoc_resp_buf(char* buf,SbMgmt* cfm)
char *asciiAddr;
CmInetIpAddr ip;
- len = len + sprintf(buf + len, " %d \n", cfm->t.ssta.s.assocSta.assocId);
+ len = len + sprintf(buf + len, " %ld \n", cfm->t.ssta.s.assocSta.assocId);
len = len + sprintf(buf + len, " %s \n", PRNT_SCTP_ASSOC_STATE(cfm->t.ssta.s.assocSta.assocState));
len = len + sprintf(buf + len, " %d \n", cfm->t.ssta.s.assocSta.dstPort);
len = len + sprintf(buf + len, " %d \n", cfm->t.ssta.s.assocSta.srcPort);
@@ -3629,7 +3629,7 @@ static ftdm_status_t handle_show_nif_profiles(ftdm_stream_handle_t *stream)
return FTDM_FAIL;
} else {
len = len + sprintf(buf + len, "\n");
- len = len + sprintf(buf + len, " %d \n",cfm.t.ssta.s.genSta.memSize);
+ len = len + sprintf(buf + len, " %ld \n",cfm.t.ssta.s.genSta.memSize);
len = len + sprintf(buf + len, " %ld \n",cfm.t.ssta.s.genSta.memAlloc);
len = len + sprintf(buf + len, "\n");
}