]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix for compile warnings
authorDavid Yat Sin <dyatsin@sangoma.com>
Wed, 12 Sep 2012 17:13:51 +0000 (13:13 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Wed, 12 Sep 2012 17:13:51 +0000 (13:13 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_handle.c
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_logger.c

index c94b53d8809a79dc481b8ea0b2436d3563720204..65a8b3720f6f1e74efd679f55ed67c4a31249c6f 100644 (file)
@@ -812,7 +812,7 @@ ftdm_status_t handle_rel_ind(uint32_t suInstId, uint32_t spInstId, uint32_t circ
                        /* send out the release complete */
                        ft_to_sngss7_rlc (ftdmchan);
                } else {
-                       SS7_DEBUG_CHAN(ftdmchan, "Collision of REL messages - resetting state.\n", " ");
+                       SS7_DEBUG_CHAN(ftdmchan, "Collision of REL messages - resetting state.%s\n", " ");
                        ft_to_sngss7_rlc (ftdmchan);
                        goto rel_ind_reset;
                }
index 6d87738ceb705d057097e2cbc663f42a6c8077d0..043bf03a3591723de38fc1148f547d4296f1c7fd 100644 (file)
@@ -292,7 +292,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
                                sprintf(buf, "[%s]", g_ftdm_sngss7_data.cfg.mtp2Link[x].name);
                        }
 
-                       ftdm_log(FTDM_LOG_WARNING,"[MTP2]%s %s : %d\n",
+                       ftdm_log(FTDM_LOG_WARNING,"[MTP2]%s %s : %s\n",
                                                                                buf,
                                                                                DECODE_LSD_EVENT(sta->t.usta.alarm.event),
                                                                                DECODE_DISC_REASON(sta->t.usta.evntParm[1]));
@@ -904,7 +904,7 @@ void handle_sng_m2ua_alarm(Pst *pst, MwMgmt *sta)
                        }
                case LMW_EVENT_ASPM:
                        {
-                               ftdm_log(FTDM_LOG_INFO," M2UA : LMW_EVENT_ASPM Event raised with peerId (%d), aspId (%d),"
+                               ftdm_log(FTDM_LOG_INFO," M2UA : LMW_EVENT_ASPM Event raised with peerId (%d),"
                                                " msgType (%d)\n\n",sta->t.usta.s.peerId,
                                                sta->t.usta.t.aspm.msgType); 
                                break;
@@ -918,9 +918,9 @@ void handle_sng_m2ua_alarm(Pst *pst, MwMgmt *sta)
                        }
                case LMW_EVENT_NOTIFY:
                        {
-                               ftdm_log(FTDM_LOG_INFO," M2UA : LMW_EVENT_NOTIFY: peerId (%d), aspId (%d), ntfy status type (%d),"
+                               ftdm_log(FTDM_LOG_INFO," M2UA : LMW_EVENT_NOTIFY: peerId (%d), aspId (%u), ntfy status type (%d),"
                                                " ntfy status id (%d)\n\n", sta->t.usta.s.peerId,
-                                               sta->t.usta.t.ntfy.aspId, sta->t.usta.t.ntfy.stType,
+                                               (uint32_t) sta->t.usta.t.ntfy.aspId, sta->t.usta.t.ntfy.stType,
                                                sta->t.usta.t.ntfy.stId);
 
                                break;
@@ -929,8 +929,8 @@ void handle_sng_m2ua_alarm(Pst *pst, MwMgmt *sta)
 
                case LMW_EVENT_M2UA_PROTO_ERROR:
                        {
-                               ftdm_log(FTDM_LOG_ERROR, " M2UA : LMW_EVENT_M2UA_PROTO_ERROR with errorCode (%d)\n\n",
-                                               sta->t.usta.t.error.errCode);
+                               ftdm_log(FTDM_LOG_ERROR, " M2UA : LMW_EVENT_M2UA_PROTO_ERROR with errorCode (%u)\n\n",
+                                               (uint32_t) sta->t.usta.t.error.errCode);
                                break;
                        }
                default: