resolved dlog errors 20/195320/1 accepted/tizen/unified/20181217.142111 submit/tizen/20181214.061228
authorchakradhar <v.pogiri@samsung.com>
Wed, 12 Dec 2018 11:59:49 +0000 (17:29 +0530)
committerchakradhar <v.pogiri@samsung.com>
Wed, 12 Dec 2018 11:59:49 +0000 (17:29 +0530)
Change-Id: I313b4adf918fb9e38445524a1c3886c1a2c7c140

32 files changed:
externals/MsgNotificationWrapper.cpp
framework/setting-handler/MsgSettingHandler.cpp
framework/storage-handler/MsgStorageManager.cpp
framework/storage-handler/MsgStorageMessage.cpp
framework/storage-handler/MsgStorageUtil.cpp
framework/transaction-manager/MsgCmdHandlerTransport.cpp
framework/transaction-manager/MsgTransManager.cpp
manager/src/msg-manager-notification.cpp
mapi/msg_transport.cpp
plugin/mms_plugin/MmsPluginCodecCommon.cpp
plugin/mms_plugin/MmsPluginConnManWrapper.cpp
plugin/mms_plugin/MmsPluginDecode.cpp
plugin/mms_plugin/MmsPluginEncode.cpp
plugin/mms_plugin/MmsPluginMessage.cpp
plugin/mms_plugin/MmsPluginTextConvert.cpp
plugin/sms_plugin/SmsPluginCallback.cpp
plugin/sms_plugin/SmsPluginCbMsgHandler.cpp
plugin/sms_plugin/SmsPluginConcatHandler.cpp
plugin/sms_plugin/SmsPluginEventHandler.cpp
plugin/sms_plugin/SmsPluginParamCodec.cpp
plugin/sms_plugin/SmsPluginSatHandler.cpp
plugin/sms_plugin/SmsPluginWapPushHandler.cpp
proxy/MsgHandleControl.cpp
proxy/MsgProxyListener.cpp
utils/MsgIpcSocket.cpp
utils/MsgMmsMessage.cpp
utils/MsgSerialize.cpp
utils/MsgTextConvert.cpp
utils/MsgUtilFile.cpp
utils/MsgUtilFunction.cpp
vobject-engine/VCard.c
vobject-engine/VMessage.c

index 5660448fac72a0f073ca290671657e520287a04b..13129fb58fd4a81ad373bc0d28c6ccc065726931 100755 (executable)
@@ -128,7 +128,7 @@ msg_error_t MsgInsertNotification(MSG_MESSAGE_INFO_S *msg_info)
                err = MsgAddNotification(noti_type, msg_info);
                break;
        default:
-               MSG_DEBUG("No matching type [%d]");
+               MSG_DEBUG("No matching type ");
                break;
        }
 
index 9c9d93151980557d20a8100ff848be0021af5f6f..410cd815933716b6410de5fab5486b4eea34de07 100755 (executable)
@@ -430,7 +430,7 @@ msg_error_t MsgSetSMSCList(const MSG_SETTING_S *pSetting, bool bSetSim)
                addrLen = strlen(pSetting->option.smscList.smscData[index].smscAddr.address);
 
        if (addrLen > SMSC_ADDR_MAX) {
-               MSG_DEBUG("SMSC address is too long [%d]", strlen(pSetting->option.smscList.smscData[index].smscAddr.address));
+               MSG_DEBUG("SMSC address is too long [%lu]", strlen(pSetting->option.smscList.smscData[index].smscAddr.address));
                return MSG_ERR_SET_SIM_SET;
        } else if (addrLen < 2) {
                MSG_DEBUG("SMSC address is too short [%d]", addrLen);
index f81d0e206d6e5ba331448aa018960c94a7a726ae..0f53a962397274fbb9a4ae2327d9cb30c2e1fa9d 100755 (executable)
@@ -924,7 +924,7 @@ msg_error_t MsgStoRestoreMessage(const char *filepath, msg_id_list_s **result_id
                                break;
 
                                case VMSG_TYPE_SUBJECT : {
-                                       MSG_DEBUG("subject length is [%d].", strlen(pObject->pszValue[0]));
+                                       MSG_DEBUG("subject length is [%lu].", strlen(pObject->pszValue[0]));
 
                                        if(strlen(pObject->pszValue[0]) > 0) {
                                                strncpy(msgInfo.subject, pObject->pszValue[0], MAX_SUBJECT_LEN);
index c3dcf2b85a2b4dd0f1e156f25177b01ab207279c..04ab1fcc28aeeb9073e51bef13f95672fcd799dd 100755 (executable)
@@ -2110,7 +2110,7 @@ msg_error_t MsgStoGetMessage(msg_message_id_t msgId, MSG_MESSAGE_INFO_S *pMsg, M
                                        return MSG_ERR_STORAGE_ERROR;
                                }
 
-                               MSG_SEC_DEBUG("Save Message Data into file : size[%d] name[%s]\n", pMsg->dataSize, fileName);
+                               MSG_SEC_DEBUG("Save Message Data into file : size[%lu] name[%s]\n", pMsg->dataSize, fileName);
 
                                if (MsgWriteIpcFile(fileName, msgData, pMsg->dataSize) == false) {
                                        dbHandle->finalizeQuery();
@@ -2209,7 +2209,7 @@ msg_error_t MsgStoGetMessage(msg_message_id_t msgId, MSG_MESSAGE_INFO_S *pMsg, M
                                }
                                return MSG_ERR_STORAGE_ERROR;
                        }
-                       MSG_SEC_DEBUG("Save Message Data into file : size[%d] name[%s]\n", pMsg->dataSize, tempFileName);
+                       MSG_SEC_DEBUG("Save Message Data into file : size[%lu] name[%s]\n", pMsg->dataSize, tempFileName);
 
                        if (MsgWriteIpcFile(tempFileName, pDestMsg, pMsg->dataSize) == false) {
                                if(pDestMsg) {
@@ -2644,7 +2644,7 @@ msg_error_t MsgStoGetSmsReportStatus(msg_message_id_t msgId, int *count, MSG_REP
                report_status[i].status = dbHandle->getColumnToInt(index++);
                report_status[i].statusTime = (time_t)dbHandle->getColumnToInt(index++);
 
-               MSG_SEC_DEBUG("(%d/%d) address = %s, report_type = %d, report_status = %d, report_time = %d", i+1, rowCnt, report_status[i].addressVal, report_status[i].type, report_status[i].status, report_status[i].statusTime);
+               MSG_SEC_DEBUG("(%d/%d) address = %s, report_type = %d, report_status = %d, report_time = %ld", i+1, rowCnt, report_status[i].addressVal, report_status[i].type, report_status[i].status, report_status[i].statusTime);
        }
 
        *pReportStatus = report_status;
@@ -2704,7 +2704,7 @@ msg_error_t MsgStoGetMmsReportStatus(msg_message_id_t msgId, int *count, MSG_REP
                        report_status[i].status = dbHandle->getColumnToInt(index++);
                        report_status[i].statusTime = (time_t)dbHandle->getColumnToInt(index++);
 
-                       MSG_DEBUG("(%d/%d) addr = %s, report_type = %d, report_status = %d, report_time = %d", i+1, rowCnt, report_status[i].addressVal, report_status[i].type, report_status[i].status, report_status[i].statusTime);
+                       MSG_DEBUG("(%d/%d) addr = %s, report_type = %d, report_status = %d, report_time = %ld", i+1, rowCnt, report_status[i].addressVal, report_status[i].type, report_status[i].status, report_status[i].statusTime);
                }
 
                *pReportStatus = report_status;
index 5dcec40e00dd1e4b36d7d8d148c8f6b67ab7f177..ca9393e896b914744ac2ef62e20da4a4bde95a3f 100755 (executable)
@@ -214,7 +214,7 @@ msg_error_t MsgStoCleanAbnormalMmsData()
                dbHandle->getColumnToString(index++, MSG_FILEPATH_LEN_MAX, filePath);
 
                if(strlen(filePath) > 1) {
-                       MSG_DEBUG("strlen(filePath) [%d]", strlen(filePath));
+                       MSG_DEBUG("strlen(filePath) [%lu]", strlen(filePath));
                        MSG_SEC_DEBUG("filePath [%s]", filePath);
 
                        if(MsgGetFileSize(filePath) < 0) {
@@ -489,9 +489,9 @@ msg_error_t MsgStoAddWAPMsg(MSG_MESSAGE_INFO_S *pMsgInfo)
 
        MSG_DEBUG("check pushMsg data");
        MSG_DEBUG("pushMsg.action : [%d]", pushMsg.action);
-       MSG_DEBUG("pushMsg.received : [%d]", pushMsg.received);
-       MSG_DEBUG("pushMsg.created : [%d]", pushMsg.created);
-       MSG_DEBUG("pushMsg.expires : [%d]", pushMsg.expires);
+       MSG_DEBUG("pushMsg.received : [%lu]", pushMsg.received);
+       MSG_DEBUG("pushMsg.created : [%lu]", pushMsg.created);
+       MSG_DEBUG("pushMsg.expires : [%lu]", pushMsg.expires);
        MSG_SEC_DEBUG("pushMsg.id : [%s]", pushMsg.id);
        MSG_DEBUG("pushMsg.href : [%s]", pushMsg.href);
        MSG_DEBUG("pushMsg.contents : [%s]", pushMsg.contents);
index 47de67eceb06774063ebaac4af923433e879b674..3b2a8de0ecd603ac5f65603cadb29ca88a8373b0 100755 (executable)
@@ -440,7 +440,7 @@ int MsgSentStatusHandler(const MSG_CMD_S *pCmd, char **ppEvent)
                return MsgMakeEvent(NULL, 0, MSG_EVENT_PLG_SENT_STATUS_CNF, MSG_SUCCESS, (void**)ppEvent);
        }
 
-       MSG_DEBUG("REQID %d, listenerFD %d, handleAddr %x, msgId %d", pStatus->reqId, prxInfo->listenerFd, prxInfo->handleAddr, prxInfo->sentMsgId);
+       MSG_DEBUG("REQID %d, listenerFD %d, handleAddr %lu, msgId %d", pStatus->reqId, prxInfo->listenerFd, prxInfo->handleAddr, prxInfo->sentMsgId);
 
        /* if APP send and quit(not exist at this time), don't send the data up. */
        if (prxInfo->handleAddr == 0) {
@@ -710,7 +710,7 @@ int MsgIncomingMMSConfMsgHandler(const MSG_CMD_S *pCmd, char **ppEvent)
                        javamms_list& listenerList = MsgTransactionManager::instance()->getJavaMMSList();
                        javamms_list::iterator it = listenerList.begin();
 
-                       MSG_DEBUG("listenerList size:%d ", listenerList.size());
+                       MSG_DEBUG("listenerList size:%lu ", listenerList.size());
 
                        if (msgInfo.networkStatus == MSG_NETWORK_SEND_FAIL && msgInfo.msgType.subType == MSG_SENDREQ_MMS) {
                                for ( ; it != listenerList.end() ; it++) {
index e56cff44e62f0c9360bf7351e094ae5910428ab1..f459ae9333b40a9196d2b812f23e7393b28a6e51 100755 (executable)
@@ -295,7 +295,7 @@ void MsgTransactionManager::insertSentMsg(int reqId, MSG_PROXY_INFO_S* pPrxInfo)
        if (pPrxInfo == NULL)
                THROW(MsgException::SENT_STATUS_ERROR, "Input Parameter is NULL");
 
-       MSG_DEBUG("msg for submit: reqId %d listenerFd %d handleAddr %x", reqId, pPrxInfo->listenerFd, pPrxInfo->handleAddr);
+       MSG_DEBUG("msg for submit: reqId %d listenerFd %d handleAddr %lu", reqId, pPrxInfo->listenerFd, pPrxInfo->handleAddr);
 
        MsgMutexLocker lock(mx);
 
index 3a9ec57bccabad5fc216ac2d90e6af2f8ee4d190..78dc1613e55d977a244e596637c0488cd15c57fe 100644 (file)
@@ -3389,7 +3389,7 @@ void MsgMgrSoundSetRepeatAlarm()
                break;
        }
 
-       MSG_MGR_DEBUG("nRepeatTime = %d", nRepeatTime);
+       MSG_MGR_DEBUG("nRepeatTime = %ld", nRepeatTime);
 
        if (nRepeatTime > 0) {
                if (g_alarmId > 0) {
index 0b61974757c4b43203d513338dba953a8c15268e..ac709cdf3e26ba0ee741196755967e9200d2893d 100755 (executable)
@@ -338,7 +338,7 @@ static void sent_status_cb_func(msg_handle_t handle, msg_struct_t sent_status, v
 static int msg_send_single_sms(const char *phone_num, const char *sms_text, msg_simple_sent_status_cb cb, void *user_param)
 {
        if (phone_num == NULL || sms_text == NULL || cb == NULL) {
-               MSG_SEC_DEBUG("Invalid parameter [%s] [%s] [%s]", phone_num, sms_text, cb);
+               MSG_SEC_DEBUG("Invalid parameter [%s] [%s] [%p]", phone_num, sms_text, cb);
                return MSG_ERR_INVALID_PARAMETER;
        }
 
@@ -459,7 +459,7 @@ EXPORT_API int msg_sms_send(const char *phone_num_list, const char *sms_text, ms
        CHECK_MSG_SUPPORTED(MSG_TELEPHONY_SMS_FEATURE);
 
        if (phone_num_list == NULL || sms_text == NULL || cb == NULL) {
-               MSG_SEC_DEBUG("Invalid parameter [%s] [%s] [%s]", phone_num_list, sms_text, cb);
+               MSG_SEC_DEBUG("Invalid parameter [%s] [%s] [%p]", phone_num_list, sms_text, cb);
                return MSG_ERR_INVALID_PARAMETER;
        }
 
@@ -513,7 +513,7 @@ EXPORT_API int msg_sms_send_message(msg_handle_t handle, msg_struct_t req)
        MSG_MESSAGE_HIDDEN_S *reqmsg = (MSG_MESSAGE_HIDDEN_S*)msg_s->data;
 
        if (reqmsg->dataSize <= 0) {
-               MSG_FATAL("msg size is invalid : [%d]", reqmsg->dataSize);
+               MSG_FATAL("msg size is invalid : [%lu]", reqmsg->dataSize);
                return MSG_ERR_INVALID_PARAMETER;
        }
 
index 30d07a7d238a3897ae89a7696950a1411f70f0e5..f00f85b1a8ab80dae94ddcb9c487adeaf951cc6f 100755 (executable)
@@ -659,7 +659,7 @@ bool MsgEncode2Base64(void *pSrc, unsigned long srcLen, unsigned long *len, unsi
 
        if (((unsigned long)(d - ret)) != *len) {
                *len = d - ret;
-               MSG_DEBUG("base64 encoding length = %d \n", *len);
+               MSG_DEBUG("base64 encoding length = %lu \n", *len);
        }
 
        return true;
@@ -696,7 +696,7 @@ int extract_encoded_word_param(char *encoded_word, char **charset,  char **encod
 
                        if (char_set) {
                                strncpy(char_set, (char*)((start_ptr + 2)), q1_ptr - (start_ptr + 2));
-                               MSG_DEBUG("character set [%s][%d]", char_set, strlen(char_set));
+                               MSG_DEBUG("character set [%s][%lu]", char_set, strlen(char_set));
                        } else {
                                MSG_DEBUG("fail to calloc");
                                goto __CATCH;
@@ -726,7 +726,7 @@ int extract_encoded_word_param(char *encoded_word, char **charset,  char **encod
                                goto __CATCH;
                        strncpy(l_encoded_text, (char*)(q2_ptr + 1), end_ptr - q2_ptr -1);
 
-                       MSG_DEBUG("encoded text [%s][%d]", l_encoded_text, strlen(l_encoded_text));
+                       MSG_DEBUG("encoded text [%s][%lu]", l_encoded_text, strlen(l_encoded_text));
                } else {
                        MSG_DEBUG("encoded text is NULL");
                        goto __CATCH;
@@ -816,7 +816,7 @@ char *MsgDecodeText(const char *pOri)
                        }
 
                        if (strcasecmp(encoding, "B") == 0) {
-                               MSG_DEBUG("Base64 encoded text [%s][%d]", encoded_text, strlen(encoded_text));
+                               MSG_DEBUG("Base64 encoded text [%s][%lu]", encoded_text, strlen(encoded_text));
 
                                decoded_text = (char *)MsgDecodeBase64((unsigned char *)encoded_text, strlen(encoded_text), (ULONG *)&decoded_len);
 
@@ -824,14 +824,14 @@ char *MsgDecodeText(const char *pOri)
                                        char *result_text = NULL;
                                        int result_text_len = 0;
 
-                                       MSG_DEBUG("Base64 decoded text [%s][%d], outlen [%d]", decoded_text, strlen(decoded_text), decoded_len);
+                                       MSG_DEBUG("Base64 decoded text [%s][%lu], outlen [%d]", decoded_text, strlen(decoded_text), decoded_len);
 
                                        if (MmsPluginTextConvert("UTF-8", charset, decoded_text, decoded_len, &result_text, &result_text_len) == false) {
                                                MSG_DEBUG("MmsPluginTextConvert Fail");
                                        }
 
                                        if (result_text) {
-                                               MSG_DEBUG("Text convert result [%s][%d]", result_text, strlen(result_text));
+                                               MSG_DEBUG("Text convert result [%s][%lu]", result_text, strlen(result_text));
 
                                                result_string.append(result_text, result_text_len);
 
@@ -848,19 +848,19 @@ char *MsgDecodeText(const char *pOri)
                                char *result_text = NULL;
                                int result_text_len = 0;
 
-                               MSG_DEBUG("Qprint encoded text [%s][%d]", encoded_text, strlen(encoded_text));
+                               MSG_DEBUG("Qprint encoded text [%s][%lu]", encoded_text, strlen(encoded_text));
 
                                decoded_text = (char *)MsgDecodeQuotePrintable((unsigned char *)encoded_text, strlen(encoded_text), (ULONG *)&decoded_len);
 
                                if (decoded_text && decoded_len > 0) {
-                                       MSG_DEBUG("Qprint decoded text [%s][%d], outlen [%d]", decoded_text, strlen(decoded_text), decoded_len);
+                                       MSG_DEBUG("Qprint decoded text [%s][%zu], outlen [%u]", decoded_text, strlen(decoded_text), decoded_len);
 
                                        if (MmsPluginTextConvert("UTF-8", charset, decoded_text, decoded_len, &result_text, &result_text_len) == false) {
                                                MSG_DEBUG("MmsPluginTextConvert Fail");
                                        }
 
                                        if (result_text) {
-                                               MSG_DEBUG("Text convert result [%s][%d]", result_text, strlen(result_text));
+                                               MSG_DEBUG("Text convert result [%s][%lu]", result_text, strlen(result_text));
 
                                                result_string.append(result_text, result_text_len);
 
index 732807bc3eaf0486a2d28ad8cf60141ca19fab02..09d2e3f83d7962c3d207fccf3a6a01cd71961984 100755 (executable)
@@ -134,9 +134,9 @@ void __connection_profile_print(connection_profile_h profile)
        MSG_SEC_INFO("Profile Apn = [%s]", apn);
 
        ret = connection_profile_get_cellular_auth_info(profile, &auth_type, &user_name, &password);
-       MSG_SEC_INFO("Profile Auth Type = [%d]", &auth_type);
-       MSG_SEC_INFO("Profile Auth Name = [%s]", &user_name);
-       MSG_SEC_INFO("Profile Auth Passward = [%s]", &password);
+       MSG_SEC_INFO("Profile Auth Type = [%p]", &auth_type);
+       MSG_SEC_INFO("Profile Auth Name = [%s]", user_name);
+       MSG_SEC_INFO("Profile Auth Passward = [%s]", password);
 
        ret = connection_profile_get_cellular_home_url(profile, &home_url);
        MSG_SEC_INFO("Profile Home Url = [%s]", home_url);
index 057a6423024f72a9ecc9a50a1ec52d67d280c36b..a55740cd2a0f9cb0f2635bf1162287f2396cd3a2 100755 (executable)
@@ -635,7 +635,7 @@ bool MmsBinaryDecodeMsgHeader(FILE *pFile, int totalLength)
                                goto __CATCH;
                        }
 
-                       MSG_SEC_INFO("Date = [%u][%d]", mmsHeader.date, (const time_t *)&mmsHeader.date);
+                       MSG_SEC_INFO("Date = [%lu][%p]", mmsHeader.date, (const time_t *)&mmsHeader.date);
                        break;
 
                case MMS_CODE_DELIVERYREPORT:
@@ -763,7 +763,7 @@ bool MmsBinaryDecodeMsgHeader(FILE *pFile, int totalLength)
                                goto __CATCH;
                        }
 
-                       MSG_SEC_INFO("X-Mms-Message-Size = [%d]", mmsHeader.msgSize);
+                       MSG_SEC_INFO("X-Mms-Message-Size = [%lu]", mmsHeader.msgSize);
                        break;
 
                case MMS_CODE_MSGSTATUS:
@@ -815,7 +815,7 @@ bool MmsBinaryDecodeMsgHeader(FILE *pFile, int totalLength)
                                goto __CATCH;
                        }
                        mmsHeader.reportAllowed =  (MmsReportAllowed)MmsGetBinaryType(MmsCodeReportAllowed, (UINT16)(oneByte & 0x7F));
-                       MSG_SEC_INFO("X-Mms-Report-Allowed = [%d]", MmsDebugGetMmsReportAllowed(mmsHeader.reportAllowed));
+                       MSG_SEC_INFO("X-Mms-Report-Allowed = [%s]", MmsDebugGetMmsReportAllowed(mmsHeader.reportAllowed));
                        break;
 
                case MMS_CODE_SENDERVISIBILLITY:
@@ -1339,7 +1339,7 @@ static bool __MmsBinaryDecodeParameter(FILE *pFile, MsgType *pMsgType, int value
                                /* Text-value */
 
                                if (__MmsBinaryDecodeInteger(pFile, &integer, &intLen, totalLength) == true) {
-                                       MSG_DEBUG("Unsupported parameter(%d)\n", integer);
+                                       MSG_DEBUG("Unsupported parameter(%lu)\n", integer);
                                        if (__MmsBinaryDecodeCheckAndDecreaseLength(&valueLength, intLen) == false)
                                                goto __RETURN;
                                } else {
@@ -2055,7 +2055,7 @@ static bool __MmsBinaryDecodeEntries(FILE *pFile, UINT32 *npEntries, int totalLe
                goto __CATCH;
        }
 
-       MSG_INFO("Number of Entries = [%d]", *npEntries);
+       MSG_INFO("Number of Entries = [%lu]", *npEntries);
 
        return true;
 
@@ -2178,7 +2178,7 @@ static bool __MmsBinaryDecodeMultipart(FILE *pFile, char *szFilePath, MsgType *p
                }
 
                if (__MmsBinaryDecodeEachPart(pFile, szFilePath, &(pMultipart->type), pMultipart->pBody, totalLength) == false) {
-                       MSG_DEBUG("MmsBinaryDecodeEachPart is fail.(nEntries = %d)\n", nEntries);
+                       MSG_DEBUG("MmsBinaryDecodeEachPart is fail.(nEntries = %lu)\n", nEntries);
                        goto __CATCH;
                }
 
@@ -3325,7 +3325,7 @@ static bool __MmsBinaryDecodeCharset(FILE *pFile, UINT32 *nCharSet, int *pCharSe
        }
 
        *nCharSet = MmsGetBinaryType(MmsCodeCharSet, (UINT16)integer);
-       MSG_DEBUG("Decoded charset MIBenum = [%d], charset enum = [%d]", integer, *nCharSet);
+       MSG_DEBUG("Decoded charset MIBenum = [%lu], charset enum = [%lu]", integer, *nCharSet);
        if (*nCharSet == MIME_UNKNOWN) {
                MSG_DEBUG("MmsGetBinaryType fail..");
                *nCharSet = MSG_CHARSET_UNKNOWN;
@@ -6082,7 +6082,7 @@ void MmsPluginDecoder::decodeMmsPdu(MmsMsg *pMsg, msg_message_id_t msgID, const
 
        memcpy(&pMsg->mmsAttrib.expiryTime, &mmsHeader.expiryTime, sizeof(MmsTimeStruct));
 
-       MSG_DEBUG("@@@@@pMsg->mmsAttrib.deliveryTime=[%d]", pMsg->mmsAttrib.deliveryTime);
+       MSG_DEBUG("@@@@@pMsg->mmsAttrib.deliveryTime=[%u]", pMsg->mmsAttrib.deliveryTime.time);
 
        pMsg->mmsAttrib.msgClass = mmsHeader.msgClass;
 
index 84e7700b5204a7030545081849e9a43b924ea888..7444cb87a18e2bbb14bf9392b71d3e230ef62a14 100755 (executable)
@@ -1852,7 +1852,7 @@ static bool __MmsBinaryEncodeMsgPart(FILE *pFile, int contentType, MsgType *pTyp
                                }
                                gMmsEncodeCurOffset = MsgFtell(pFile);
                                if (gMmsEncodeCurOffset < 0) {
-                                       MSG_DEBUG("MsgFtell returns negative value [%ld]", gMmsEncodeCurOffset);
+                                       MSG_DEBUG("MsgFtell returns negative value [%d]", gMmsEncodeCurOffset);
                                        goto __CATCH;
                                }
                        }
@@ -2234,7 +2234,7 @@ static bool __MmsBinaryEncodeContentBody(FILE *pFile, MsgBody *pBody)
                gMmsEncodeCurOffset = MsgFtell(pFile);
 
                if (gMmsEncodeCurOffset < 0) {
-                       MSG_DEBUG("MsgFtell returns negative value [%ld]", gMmsEncodeCurOffset);
+                       MSG_DEBUG("MsgFtell returns negative value [%d]", gMmsEncodeCurOffset);
                        goto __CATCH;
                }
 
@@ -2251,7 +2251,7 @@ static bool __MmsBinaryEncodeContentBody(FILE *pFile, MsgBody *pBody)
                gMmsEncodeCurOffset = MsgFtell(pFile);
 
                if (gMmsEncodeCurOffset < 0) {
-                       MSG_DEBUG("MsgFtell returns negative value [%ld]", gMmsEncodeCurOffset);
+                       MSG_DEBUG("MsgFtell returns negative value [%d]", gMmsEncodeCurOffset);
                        goto __CATCH;
                }
        }
@@ -2986,7 +2986,7 @@ static bool __MmsBinaryEncodeDate(FILE *pFile, time_t inpDateSec)
                }
 
        } else {
-               MSG_DEBUG("date has a negative value (%d)", dateSec);
+               MSG_DEBUG("date has a negative value (%ld)", dateSec);
                goto __CATCH;
        }
        return true;
index 773e515a4fe4af62e0372a3a1ec7c047a455c1a0..7743f1733b2de02a78d0bf54c3fd5d2844f567e9 100755 (executable)
@@ -900,7 +900,7 @@ void MmsPrintMmsMsg(const MmsMsg *pMmsMsg)
                PRINT_KEY_VAL_STR("mms type", "Unknown");
        }
 
-       PRINT_KEY_VAL_STR("mms ver", pMmsMsg->mmsAttrib.version);
+       PRINT_KEY_VAL_INT("mms ver", pMmsMsg->mmsAttrib.version);
 }
 
 int MmsUpdateMultipartList(MSG_MESSAGE_INFO_S *pMsgInfo)
index 613d82dfda775339aba4f90f607045172a23d3e1..184d8605d33d96990d7e104c140d633501955b82 100755 (executable)
@@ -104,7 +104,7 @@ bool MmsPluginTextConvert(const char *pToCodeSet, const char *pFromCodeset, cons
        }
 
        if (pDest == NULL || bytes_written == 0 || bytes_read == 0) {
-               MSG_DEBUG("Error in g_convert, pDest = %s, bytes_written = %d, bytes_read = %d\n", pDest, bytes_written, bytes_read);
+               MSG_DEBUG("Error in g_convert, pDest = %s, bytes_written = %lu, bytes_read = %lu\n", pDest, bytes_written, bytes_read);
                goto __CATCH;
        }
 
index 72d77fa2c21979e5d274a0041b1677136aa39445..c203580e1161183f5d21e28821bc92090ed67ffc 100755 (executable)
@@ -43,7 +43,7 @@ extern bool isMemAvailable;
 ==================================================================================================*/
 void TapiEventDeviceReady(TapiHandle *handle, const char *noti_id, void *data, void *user_data)
 {
-       MSG_DEBUG("TapiEventDeviceReady is called. : noti_id = [%d]", noti_id);
+       MSG_DEBUG("TapiEventDeviceReady is called. : noti_id = [%s]", noti_id);
 
        try {
                /* Call Event Handler */
@@ -496,8 +496,8 @@ void TapiEventGetSimMsg(TapiHandle *handle, int result, void *data, void *user_d
        MSG_DEBUG("msgInfo.msgType.mainType : %d", msgInfo.msgType.mainType);
        MSG_DEBUG("msgInfo.msgType.subType : %d", msgInfo.msgType.subType);
        MSG_DEBUG("msgInfo.msgType.classType : %d", msgInfo.msgType.classType);
-       MSG_DEBUG("msgInfo.displayTime : %d", msgInfo.displayTime);
-       MSG_DEBUG("msgInfo.dataSize : %d", msgInfo.dataSize);
+       MSG_DEBUG("msgInfo.displayTime : %ld", msgInfo.displayTime);
+       MSG_DEBUG("msgInfo.dataSize : %lu", msgInfo.dataSize);
        if (msgInfo.bTextSms == true)
                MSG_SEC_DEBUG("msgInfo.msgText : %s", msgInfo.msgText);
        else
index 7f896717a05296b50ca0986f0de58bf751a937fa..d2b70982d5b3c26021f62d793387f0e5554a492e 100755 (executable)
@@ -777,7 +777,7 @@ void SmsPluginCbMsgHandler::convertCbMsgToMsginfo(SMS_CBMSG_S *pCbMsg, MSG_MESSA
        pMsgInfo->msgPort.srcPort = 0;
 
        pMsgInfo->displayTime = pCbMsg->recvTime;
-       MSG_DEBUG("recvTime is %d", pMsgInfo->displayTime);
+       MSG_DEBUG("recvTime is %ld", pMsgInfo->displayTime);
 
        int bufSize = pCbMsg->msgLength*2;
 
@@ -810,7 +810,7 @@ void SmsPluginCbMsgHandler::convertCbMsgToMsginfo(SMS_CBMSG_S *pCbMsg, MSG_MESSA
                if (MsgCreateFileName(fileName) == false)
                        THROW(MsgException::FILE_ERROR, "MsgCreateFileName error");
 
-               MSG_SEC_DEBUG("Save Message Data into file : size[%d] name[%s]\n", pMsgInfo->dataSize, fileName);
+               MSG_SEC_DEBUG("Save Message Data into file : size[%lu] name[%s]\n", pMsgInfo->dataSize, fileName);
                if (MsgWriteIpcFile(fileName, tmpBuf, pMsgInfo->dataSize) == false)
                        THROW(MsgException::FILE_ERROR, "MsgWriteIpcFile error");
 
@@ -859,7 +859,7 @@ void SmsPluginCbMsgHandler::convertEtwsMsgToMsginfo(SMS_CBMSG_PAGE_S *EtwsMsg, M
        pMsgInfo->msgPort.srcPort = 0;
 
        pMsgInfo->displayTime = EtwsMsg->pageHeader.recvTime;
-       MSG_DEBUG("recvTime is %d", pMsgInfo->displayTime);
+       MSG_DEBUG("recvTime is %ld", pMsgInfo->displayTime);
        MSG_DEBUG("LENGTH %d", EtwsMsg->pageLength);
        pMsgInfo->bTextSms = true;
        pMsgInfo->dataSize = EtwsMsg->pageLength;
index 520aba0012cda5333b75dc532a9c6109a1decf01..4653f7c36bfeb185806fc35ea85106b00a6a6814 100755 (executable)
@@ -865,7 +865,7 @@ void SmsPluginConcatHandler::convertConcatToMsginfo(const SMS_DELIVER_S *pTpdu,
                pMsgInfo->dataSize = textCvt->convertUCS2ToUTF8((unsigned char*)tmpBuf, bufSize, (unsigned char*)pUserData, DataSize);
        }
 
-       MSG_DEBUG("Data Size [%d]", pMsgInfo->dataSize);
+       MSG_DEBUG("Data Size [%lu]", pMsgInfo->dataSize);
        MSG_DEBUG("Data [%s]", tmpBuf);
 
 #ifdef MSG_FW_FOR_DEBUG
@@ -889,7 +889,7 @@ printf("\n");
                if (MsgCreateFileName(fileName) == false)
                        THROW(MsgException::FILE_ERROR, "########  MsgCreateFileName Fail !!! #######");
 
-               MSG_SEC_DEBUG("Save Message Data into file : size[%d] name[%s]\n", pMsgInfo->dataSize, fileName);
+               MSG_SEC_DEBUG("Save Message Data into file : size[%lu] name[%s]\n", pMsgInfo->dataSize, fileName);
                if (MsgWriteIpcFile(fileName, tmpBuf, pMsgInfo->dataSize) == false)
                        THROW(MsgException::FILE_ERROR, "########  MsgWriteIpcFile Fail !!! #######");
 
@@ -993,7 +993,7 @@ void SmsPluginConcatHandler::convertConcatToMsginfo(const SMS_SUBMIT_S *pTpdu, c
                pMsgInfo->dataSize = textCvt->convertUCS2ToUTF8((unsigned char*)tmpBuf, bufSize, (unsigned char*)pUserData, DataSize);
        }
 
-       MSG_DEBUG("Data Size [%d]", pMsgInfo->dataSize);
+       MSG_DEBUG("Data Size [%lu]", pMsgInfo->dataSize);
        MSG_DEBUG("Data [%s]", tmpBuf);
 
        if (pMsgInfo->dataSize > MAX_MSG_TEXT_LEN) {
@@ -1006,7 +1006,7 @@ void SmsPluginConcatHandler::convertConcatToMsginfo(const SMS_SUBMIT_S *pTpdu, c
                if (MsgCreateFileName(fileName) == false)
                        THROW(MsgException::FILE_ERROR, "########  MsgCreateFileName Fail !!! #######");
 
-               MSG_SEC_DEBUG("Save Message Data into file : size[%d] name[%s]\n", pMsgInfo->dataSize, fileName);
+               MSG_SEC_DEBUG("Save Message Data into file : size[%lu] name[%s]\n", pMsgInfo->dataSize, fileName);
                if (MsgWriteIpcFile(fileName, tmpBuf, pMsgInfo->dataSize) == false)
                        THROW(MsgException::FILE_ERROR, "########  MsgWriteIpcFile Fail !!! #######");
 
index 3f75041865f043619e930911a019d9c73e425619..cd522e1ff8e7679f390e542c24039b53c0cfad03 100755 (executable)
@@ -292,10 +292,10 @@ void SmsPluginEventHandler::handleMsgIncoming(TapiHandle *handle, SMS_TPDU_S *pT
        MSG_DEBUG("msgInfo.msgType.mainType : %d", msgInfo.msgType.mainType);
        MSG_DEBUG("msgInfo.msgType.subType : %d", msgInfo.msgType.subType);
        MSG_DEBUG("msgInfo.msgType.classType : %d", msgInfo.msgType.classType);
-       MSG_DEBUG("msgInfo.displayTime : %d", msgInfo.displayTime);
+       MSG_DEBUG("msgInfo.displayTime : %ld", msgInfo.displayTime);
        MSG_DEBUG("msgInfo.msgPort.valid : %d", msgInfo.msgPort.valid);
        MSG_DEBUG("msgInfo.encodeType : %d", msgInfo.encodeType);
-       MSG_DEBUG("msgInfo.dataSize : %d", msgInfo.dataSize);
+       MSG_DEBUG("msgInfo.dataSize : %lu", msgInfo.dataSize);
        MSG_DEBUG("msgInfo.sim_idx : %d", msgInfo.sim_idx);
 
        if (msgInfo.bTextSms == true) {
@@ -646,7 +646,7 @@ void SmsPluginEventHandler::convertDeliverTpduToMsginfo(const SMS_DELIVER_S *pTp
 
                        MSG_DEBUG("tzname[0] [%s]", tzname[0]);
                        MSG_DEBUG("tzname[1] [%s]", tzname[1]);
-                       MSG_DEBUG("timezone [%d]", timezone);
+                       MSG_DEBUG("timezone [%lu]", timezone);
                        MSG_DEBUG("daylight [%d]", daylight);
 
                        memset(displayTime, 0x00, sizeof(displayTime));
index 0b952bd3cd914f0c726ce50d6e76945ccfffdc3b..edcffcef47ef10d47b629c9168764c692fa44c36 100755 (executable)
@@ -539,7 +539,7 @@ time_t SmsPluginParamCodec::convertTime(const SMS_TIMESTAMP_S *time_stamp)
 
                MSG_DEBUG("tzname[0] [%s]", tzname[0]);
                MSG_DEBUG("tzname[1] [%s]", tzname[1]);
-               MSG_DEBUG("timezone [%d]", timezone);
+               MSG_DEBUG("timezone [%ld]", timezone);
                MSG_DEBUG("daylight [%d]", daylight);
 
                memset(displayTime, 0x00, sizeof(displayTime));
index 85ccd501c2298a9ce51b346e3956510239acee0f..d169d03aeb766a8f3f9cd8dd1c695e7fd8a253f4 100755 (executable)
@@ -183,7 +183,7 @@ void SmsPluginSatHandler::sendSms(TapiHandle *handle, void *pData)
                smsc.npi = pSmsData->address.npi;
                snprintf(smsc.address, sizeof(smsc.address), "%s", pSmsData->address.diallingNumber);
 
-               MSG_SEC_DEBUG("SCA TON[%d], NPI[%d], LEN[%d], ADDR[%s]", smsc.ton, smsc.npi, strlen(smsc.address), smsc.address);
+               MSG_SEC_DEBUG("SCA TON[%d], NPI[%d], LEN[%lu], ADDR[%s]", smsc.ton, smsc.npi, strlen(smsc.address), smsc.address);
        } else {
                /* Set SMSC Options */
                SmsPluginTransport::instance()->setSmscOptions(simIndex, &smsc);
index 2be20996e46b04758264aed6584bcf5451446d19..bc9cca1a886596db0f554e8f68bcab4d3b203ee5 100755 (executable)
@@ -848,13 +848,13 @@ void SmsPluginWapPushHandler::handleWapPushMsg(const char *pUserData, int DataSi
 
        pushHeaderLen = wspRetriveUintvarDecode(pPDUTypeData, &iPDU);
 
-       MSG_DEBUG("PDUTypeDataLen [%d]", PDUTypeDataLen);
-       MSG_DEBUG("pushHeaderLen [%d]", pushHeaderLen);
-       MSG_DEBUG("iPDU [%d]", iPDU);
+       MSG_DEBUG("PDUTypeDataLen [%lu]", PDUTypeDataLen);
+       MSG_DEBUG("pushHeaderLen [%lu]", pushHeaderLen);
+       MSG_DEBUG("iPDU [%lu]", iPDU);
 
        wspHeaderLen = pushHeaderLen + iPDU;
 
-       MSG_DEBUG("wspBodyLen [%d]", wspBodyLen);
+       MSG_DEBUG("wspBodyLen [%lu]", wspBodyLen);
 
        if (wspHeaderLen > 0) {
                pWspHeader = new char[wspHeaderLen];
@@ -1713,9 +1713,9 @@ void SmsPluginWapPushHandler::handleSLMessage(char* pPushBody, int PushBodyLen,
 
        MSG_DEBUG("check pushMsg data");
        MSG_DEBUG("pushMsg.action : [%d]", pushMsg.action);
-       MSG_DEBUG("pushMsg.received : [%d]", pushMsg.received);
-       MSG_DEBUG("pushMsg.created : [%d]", pushMsg.created);
-       MSG_DEBUG("pushMsg.expires : [%d]", pushMsg.expires);
+       MSG_DEBUG("pushMsg.received : [%lu]", pushMsg.received);
+       MSG_DEBUG("pushMsg.created : [%lu]", pushMsg.created);
+       MSG_DEBUG("pushMsg.expires : [%lu]", pushMsg.expires);
        MSG_SEC_DEBUG("pushMsg.id : [%s]", pushMsg.id);
        MSG_DEBUG("pushMsg.href : [%s]", pushMsg.href);
        MSG_DEBUG("pushMsg.contents : [%s]", pushMsg.contents);
@@ -1752,7 +1752,7 @@ void SmsPluginWapPushHandler::handleSLMessage(char* pPushBody, int PushBodyLen,
        msgInfo.sim_idx = simIndex;
        getDisplayName(msgInfo.msgType.subType, msgInfo.addressList[0].addressVal);
 
-       MSG_DEBUG("dataSize : %d", msgInfo.dataSize);
+       MSG_DEBUG("dataSize : %lu", msgInfo.dataSize);
 
        /** Add WAP Push Msg into DB */
        err = SmsPluginStorage::instance()->checkMessage(&msgInfo);
@@ -2193,7 +2193,7 @@ unsigned long SmsPluginWapPushHandler::wspRetriveUintvarDecode(unsigned char* so
 
        decodedValue = wspDecodeUintvar(i + 1, sourceData + *currentPointer);
        *currentPointer = *currentPointer + i + 1;
-       MSG_DEBUG("wspRetriveUintvarDecode: decodedValue=%d .\n", decodedValue);
+       MSG_DEBUG("wspRetriveUintvarDecode: decodedValue=%lu .\n", decodedValue);
        return decodedValue;
 }
 
@@ -2413,7 +2413,7 @@ void SmsPluginWapPushHandler::wspDecodeHeader(unsigned char* sEncodedHeader, uns
                                /* processing normal pre-defined field decoding */
 
                                MSG_DEBUG("WspLDecodeHeader: FieldCode %X\n", fieldCode);
-                               MSG_DEBUG("WspLDecodeHeader: fieldSize %d\n", fieldValueLen);
+                               MSG_DEBUG("WspLDecodeHeader: fieldSize %lu\n", fieldValueLen);
 
                                if ((fieldCode  > wspHeaderFieldCount) && (fieldCode != 0xff)) {
                                        MSG_DEBUG("WspLDecodeHeader: unknown fieldcode %X \n", track);
@@ -2486,7 +2486,7 @@ void SmsPluginWapPushHandler::wspDecodeHeader(unsigned char* sEncodedHeader, uns
                                                unsigned long  i = 0;
                                                /* encoded content type length body */
                                                unsigned long  tempLen;
-                                               MSG_DEBUG("fieldValueLen: %d", fieldValueLen);
+                                               MSG_DEBUG("fieldValueLen: %lu", fieldValueLen);
 
                                                /* Like HTTP result state 304, it's for processing without Content type. This part doesn't defined. */
                                                if (0 == fieldValueLen) {
@@ -2545,7 +2545,7 @@ void SmsPluginWapPushHandler::wspDecodeHeader(unsigned char* sEncodedHeader, uns
                                                        tempLen = AcStrlen((char*)fieldValue) + 1;
 
                                                        strncat((char*)temper, (char*)fieldValue, (WSP_STANDARD_STR_LEN_MAX * 5)-AcStrlen((char*)temper)-1);
-                                                       MSG_DEBUG("WspLDecodeHeader: Attention, Decoding Check of Content-Type\n ", tempLen);
+                                                       MSG_DEBUG("WspLDecodeHeader: Attention, Decoding Check of Content-Type %lu\n ", tempLen);
                                                }
 
                                                /* If there is a parameter */
@@ -3008,7 +3008,7 @@ unsigned long SmsPluginWapPushHandler::wspHeaderDecodeInteger(unsigned char* dat
 
                IntLen = (data[0] > 0x04) ? 0x04:data[0];
 
-               MSG_DEBUG("WspLHeaderDecodeInteger: input %d , length %d\n", data[0], IntLen);
+               MSG_DEBUG("WspLHeaderDecodeInteger: input %d , length %lu\n", data[0], IntLen);
 
                for (i = 0; i < IntLen; i++)
                        returner.seg[IntLen-(i+1)] = data[i+1];
@@ -3071,7 +3071,7 @@ unsigned long SmsPluginWapPushHandler::wspHeaderDecodeIntegerByLength(unsigned c
 
        for (i = 0 ; i < length; i++) {
                returner.integer  =  returner.integer + (data[i]  *  (0x1  << ((length - (i + 1)) * 8)));
-               MSG_DEBUG("WspLHeaderDecodeIntegerByLength: %d \n", returner.integer);
+               MSG_DEBUG("WspLHeaderDecodeIntegerByLength: %lu \n", returner.integer);
        }
 
        return returner.integer;
index 81d0dfa4ca0d757bfb0f6081279229ce99f8ae29..58c54f9fc97bbc27addeb1103914ee42e09b1fcf 100755 (executable)
@@ -234,7 +234,7 @@ void MsgHandle::convertMsgStruct(const MSG_MESSAGE_HIDDEN_S *pSrc, MSG_MESSAGE_I
                pDest->msgPort.srcPort = pSrc->srcPort;
        }
 
-       MSG_DEBUG("nSize = %d",  pSrc->dataSize);
+       MSG_DEBUG("nSize = %lu",  pSrc->dataSize);
        MSG_DEBUG("mainType = %d",  pSrc->mainType);
 
        if (pSrc->mainType == MSG_SMS_TYPE) {
@@ -252,7 +252,7 @@ void MsgHandle::convertMsgStruct(const MSG_MESSAGE_HIDDEN_S *pSrc, MSG_MESSAGE_I
                                if (MsgCreateFileName(fileName) == false)
                                        THROW(MsgException::FILE_ERROR, "MsgCreateFileName error");
 
-                               MSG_SEC_DEBUG("Save pSrc->pData into file : size[%d] name[%s]", pDest->dataSize, fileName);
+                               MSG_SEC_DEBUG("Save pSrc->pData into file : size[%lu] name[%s]", pDest->dataSize, fileName);
 
                                if (MsgWriteIpcFile(fileName, (char*)pSrc->pData, pSrc->dataSize) == false)
                                        THROW(MsgException::FILE_ERROR, "MsgWriteIpcFile error");
@@ -269,7 +269,7 @@ void MsgHandle::convertMsgStruct(const MSG_MESSAGE_HIDDEN_S *pSrc, MSG_MESSAGE_I
                                        strncpy(pDest->msgText, (char*)pSrc->pData, pSrc->dataSize);
                        }
 
-                       MSG_DEBUG("pData = %s", pSrc->pData);
+                       MSG_DEBUG("pData = %s",(char*) pSrc->pData);
                } else {
                        MSG_DEBUG("pSrc->pData is NULL.");
                        pDest->bTextSms = true;
@@ -305,7 +305,7 @@ void MsgHandle::convertMsgStruct(const MSG_MESSAGE_HIDDEN_S *pSrc, MSG_MESSAGE_I
                                        snprintf(pFileNameExt, strlen("JAVA")+1, "JAVA");
                        }
 
-                       MSG_SEC_DEBUG("Save Message Data into file : size[%d] name[%s]", pSrc->mmsDataSize, fileName);
+                       MSG_SEC_DEBUG("Save Message Data into file : size[%zu] name[%s]", pSrc->mmsDataSize, fileName);
                        if (MsgWriteIpcFile(fileName, (char*)pSrc->pMmsData, pSrc->mmsDataSize) == false)
                                THROW(MsgException::FILE_ERROR, "MsgWriteIpcFile error");
 
@@ -437,7 +437,7 @@ void MsgHandle::convertMsgStruct(const MSG_MESSAGE_INFO_S *pSrc, MSG_MESSAGE_HID
                        pDest->pMmsData = (void*)new char[fileSize];
                        memset(pDest->pMmsData, 0x00, fileSize);
                        memcpy(pDest->pMmsData, pFileData, fileSize);
-                       MSG_SEC_DEBUG("Get Message Data from file : size[%d] name[%s]", pDest->mmsDataSize, pSrc->msgData);
+                       MSG_SEC_DEBUG("Get Message Data from file : size[%zu] name[%s]", pDest->mmsDataSize, pSrc->msgData);
                }
 
        } else {
@@ -557,7 +557,7 @@ void MsgHandle::convertSendOptStruct(const MSG_SENDINGOPT_INFO_S* pSrc, MSG_SEND
 
                MSG_DEBUG("pDest->option.mmsSendOpt.priority = %d", pMms->priority);
                MSG_DEBUG("pDest->option.mmsSendOpt.bReadReq = %d", pMms->bReadReq);
-               MSG_DEBUG("pDest->option.mmsSendOpt.expiryTime = %d", pMms->expiryTime);
+               MSG_DEBUG("pDest->option.mmsSendOpt.expiryTime = %ld", pMms->expiryTime);
        }
 
        MSG_END();
index c66d09a521012803b1693142ffa5bdff12fa85ed..efec00f5f344c740e796906c468fd8a43dceb507 100755 (executable)
@@ -1297,7 +1297,7 @@ void MsgProxyListener::resetProxyListener()
 
        handle_set::iterator it = openHandleSet.begin();
        for (; it != openHandleSet.end(); it++) {
-               MSG_DEBUG("disconnect socket for opened handle [%p]", it);
+               MSG_DEBUG("disconnect socket for opened handle [%p]", *it);
                MsgHandle *handle = (MsgHandle *)*it;
                handle->disconnectSocket();
        }
@@ -1344,7 +1344,7 @@ void MsgProxyListener::insertOpenHandleSet(MsgHandle* pMsgHandle)
        handle_set::iterator it = openHandleSet.find(pMsgHandle);
        if (it == openHandleSet.end()) {
                openHandleSet.insert(pMsgHandle);
-               MSG_DEBUG("New handle is added. current count = [%d]", openHandleSet.size());
+               MSG_DEBUG("New handle is added. current count = [%lu]", openHandleSet.size());
        }
 }
 
index a24eb37c452fbf09544a0ffa6f825af132f6e922..3bd930fa43488cc7383b877710a0eb2e2c7450ad 100755 (executable)
@@ -163,7 +163,7 @@ int MsgIpcClientSocket::write(const char* buf, unsigned int len)
        /* send the data size first */
        int n = writen((const char*)&len, sizeof(len));
        if (n != sizeof(len)) {
-               MSG_FATAL("WARNING: write header_size[%d] not matched [%d]", n, sizeof(len));
+               MSG_FATAL("WARNING: write header_size[%d] not matched [%zu]", n, sizeof(len));
                return CUSTOM_SOCKET_ERROR;
        }
 
@@ -263,7 +263,7 @@ int MsgIpcClientSocket::read(char** buf, unsigned int* len)
                MSG_FATAL("sockfd [%d] CLOSE_CONNECTION_BY_SIGNAL", sockfd);
                return n;
        } else if (n != sizeof(int)) {
-               MSG_FATAL("WARNING: read header_size[%d] not matched [%d]", n, sizeof(int));
+               MSG_FATAL("WARNING: read header_size[%d] not matched [%zu]", n, sizeof(int));
                return CUSTOM_SOCKET_ERROR;
        }
 
@@ -479,7 +479,7 @@ int MsgIpcServerSocket::read(int fd, char** buf, int* len)
                MSG_FATAL("fd %d CLOSE_CONNECTION_BY_SIGNAL", fd);
                return n;
        } else if (n != sizeof(int)) {
-               MSG_FATAL("readn %d(%d)", n, sizeof(int));
+               MSG_FATAL("readn %d(%zu)", n, sizeof(int));
                return CUSTOM_SOCKET_ERROR;
        }
 
@@ -604,7 +604,7 @@ int MsgIpcServerSocket::write(int fd, const char* buf, unsigned int len)
        int n = writen(fd, (const char*)&len, sizeof(len));
 
        if (n != sizeof(len)) {
-               MSG_FATAL("WARNING: write header_size[%d] not matched [%d]", n, sizeof(len));
+               MSG_FATAL("WARNING: write header_size[%d] not matched [%zu]", n, sizeof(len));
                return CUSTOM_SOCKET_ERROR;
        }
 
index 688085e4d6ee053924f2334e3c4cdcc5ba4a8261..5caca0936ba329786bebbfd9bf32cfe3ec43e233 100755 (executable)
@@ -614,7 +614,7 @@ bool _MsgMmsDeserializeMessageData(MMS_MESSAGE_DATA_S *pMsgData, const char *pDa
        MSG_BEGIN();
 
        if (pMsgData == NULL || pData == NULL) {
-               MSG_DEBUG("param is NULL. pBody = %x, pData = %x", pMsgData, pData);
+               MSG_DEBUG("param is NULL. pBody = %p, pData = %s", pMsgData, pData);
                return false;
        }
 
index df0f9fd6ded76df5e3dc806067345098ab71127b..5a35b3d24912769c21e3abac3e2066d8cb246b3d 100755 (executable)
@@ -709,7 +709,7 @@ int MsgSerializeMms(const MMS_DATA_S *pMsgData, char **pValue)
                offset += sizeof(MMS_MULTIPART_DATA_S);
 
                MSG_DEBUG("SMIL file path = [%s]", pMsgData->smil->szFilePath);
-               MSG_DEBUG("SMIL nMultipartDataLen = [%d]", pMsgData->smil->nMultipartDataLen);
+               MSG_DEBUG("SMIL nMultipartDataLen = [%lu]", pMsgData->smil->nMultipartDataLen);
 
                if (pMsgData->smil->pMultipartData) {
                        memcpy(buf + offset, pMsgData->smil->pMultipartData, sizeof(char)*pMsgData->smil->nMultipartDataLen);
@@ -874,7 +874,7 @@ int MsgDeserializeMmsData(char* value, int value_len, MMS_DATA_S **ppMmsData)
                offset += sizeof(MMS_MULTIPART_DATA_S);
 
                MSG_SEC_DEBUG("SMIL file path = [%s]", pMmsData->smil->szFilePath);
-               MSG_DEBUG("SMIL nMultipartDataLen = [%d]", pMmsData->smil->nMultipartDataLen);
+               MSG_DEBUG("SMIL nMultipartDataLen = [%lu]", pMmsData->smil->nMultipartDataLen);
 
                if (pMmsData->smil->nMultipartDataLen > 0) {
                        pMmsData->smil->pMultipartData = (char *)calloc(1, sizeof(char)*pMmsData->smil->nMultipartDataLen);
index ffb3e61ecb3257741b25bdcacbf2a749f3896cad..de888e71551bff02e42ac43b82343b6d3bf10ece 100755 (executable)
@@ -451,7 +451,7 @@ int MsgTextConvert::convertUTF8ToGSM7bit(OUT unsigned char *pDestText, IN int ma
        memset(pUCS2Text, 0x00, maxUCS2Length * sizeof(WCHAR));
 
        MSG_DEBUG("srcTextLen = %d", srcTextLen);
-       MSG_DEBUG("temp buffer size = %d", maxUCS2Length * sizeof(WCHAR));
+       MSG_DEBUG("temp buffer size = %lu", maxUCS2Length * sizeof(WCHAR));
        MSG_DEBUG("max dest Length = %d", maxLength);
 
        ucs2Length = convertUTF8ToUCS2((unsigned char*)pUCS2Text, maxUCS2Length * sizeof(WCHAR), pSrcText, srcTextLen);
@@ -536,7 +536,7 @@ int MsgTextConvert::convertUTF8ToAuto(OUT unsigned char *pDestText, IN int maxLe
        memset(pUCS2Text, 0x00, maxUCS2Length * sizeof(WCHAR));
 
        MSG_DEBUG("srcTextLen = %d", srcTextLen);
-       MSG_DEBUG("temp buffer size = %d", maxUCS2Length * sizeof(WCHAR));
+       MSG_DEBUG("temp buffer size = %lu", maxUCS2Length * sizeof(WCHAR));
        MSG_DEBUG("max dest Length = %d", maxLength);
 
        ucs2Length = convertUTF8ToUCS2((unsigned char*)pUCS2Text, maxUCS2Length * sizeof(WCHAR), pSrcText, srcTextLen);
index bf8c35e2ef3be1ffc579bc62f8665c4307a81493..46c26e9f6d5d6d7f29fa044a6ec9e0091bd30216 100755 (executable)
@@ -217,7 +217,7 @@ int MsgFseek(FILE *pFile, long int offset, int origin)
 
        int ret = -1;
 
-       MSG_DEBUG("[FILE] pFile [%p], offset [%d], origin [%d]", pFile, offset, origin);
+       MSG_DEBUG("[FILE] pFile [%p], offset [%ld], origin [%d]", pFile, offset, origin);
 
        try {
                ret = fseek(pFile, offset, origin); /* return 0, if success. */
@@ -238,7 +238,7 @@ size_t MsgWriteFile(const char *pData, size_t size, size_t count, FILE *pFile)
 
        size_t nWrite = 0;
 
-       MSG_DEBUG("[FILE] pData [%p], size [%d], count [%d], pFile [%p]", pData, size, count, pFile);
+       MSG_DEBUG("[FILE] pData [%p], size [%lu], count [%lu], pFile [%p]", pData, size, count, pFile);
 
        try {
                nWrite = fwrite(pData, size, count, pFile);
@@ -339,7 +339,7 @@ bool MsgCreateFileName(char *pFileName)
                /* Create Random Number */
                srandom((unsigned int)ts.tv_nsec);
 
-               MSG_DEBUG("ts.tv_nsec : %d", ts.tv_nsec);
+               MSG_DEBUG("ts.tv_nsec : %ld", ts.tv_nsec);
 
                /* between 1 - 1000000000 */
                snprintf(pFileName, MSG_FILENAME_LEN_MAX, "MSG_%lu.DATA", random()%1000000000+1);
@@ -355,7 +355,7 @@ bool MsgCreateFileName(char *pFileName)
 bool MsgOpenAndReadFile(const char *pFileName, char **ppData, int *pDataSize)
 {
        if (!pFileName || !ppData || !pDataSize) {
-               MSG_ERR("Invalid params!! pFileName=%x, ppData=%x, pDataSize=%x", pFileName, ppData, pDataSize);
+               MSG_ERR("Invalid params!! pFileName=%s, ppData=%s, pDataSize=%p", pFileName, *ppData, (void *)pDataSize);
                return false;
        }
 
@@ -705,9 +705,9 @@ bool MsgWriteDataFromEncodeBuffer(FILE *pFile, char *pInBuffer, int *pPtr, int m
        }
 
        MSG_DEBUG("MsgWriteDataFromEncodeBuffer:");
-       MSG_DEBUG("pInBuffer %x", pInBuffer);
+       MSG_DEBUG("pInBuffer %s", pInBuffer);
        MSG_DEBUG("pPtr %d",  (*pPtr));
-       MSG_DEBUG("before to fwite %x", pFile);
+       MSG_DEBUG("before to fwite %p", pFile);
 
        if (MsgWriteFile(pInBuffer, sizeof(char), (*pPtr), pFile) != (size_t)(*pPtr)) {
                MSG_FATAL("MsgWriteFile failed");
index 9666cc1db944451d485e108b313d4c08f73e03f3..9f857dd0c25d0c7cb29c32f6dd9f53657387be35 100755 (executable)
@@ -761,7 +761,7 @@ void MsgDecodeReportStatus(char *pSrc,  msg_struct_list_s *report_list)
 
                report_status[i] = (msg_struct_t)report_status_item;
 
-               MSG_DEBUG("Report_type = %d, status addr = %s, status = %d, time = %d",
+               MSG_DEBUG("Report_type = %d, status addr = %s, status = %d, time = %ld",
                                report_status_info->type, report_status_info->addressVal,
                                report_status_info->status, report_status_info->statusTime);
        }
@@ -1146,7 +1146,7 @@ msg_error_t msg_write_text_to_msg_info(MSG_MESSAGE_INFO_S *pMsgInfo, char *text)
                        return MSG_ERR_STORAGE_ERROR;
                }
 
-               MSG_SEC_DEBUG("Save text into file : size[%d] name[%s]", pMsgInfo->dataSize, fileName);
+               MSG_SEC_DEBUG("Save text into file : size[%lu] name[%s]", pMsgInfo->dataSize, fileName);
 
                if (MsgWriteIpcFile(fileName, text, pMsgInfo->dataSize) == false) {
                        MSG_DEBUG("MsgWriteIpcFile error");
index 15f55df0c83ed5bd85973f45c3e4cdb7e40054d3..d0abf9770b312ead843557caaa69511bb8abd5f7 100755 (executable)
@@ -240,7 +240,7 @@ __VCardGetValue(char* szString, const ValueObj list[], int size)
 
        for (i = 0; i < size-1; i++) {
                VDATA_TRACE(" i : %d", i);
-               VDATA_TRACE(" for loop %d < %d, list[%d] : %p, list[%d].szName : %p", i, size, i, list[i], i, list[i].szName);
+               VDATA_TRACE(" for loop %d < %d, list[%d] : %d, list[%d].szName : %p", i, size, i, list[i].flag, i, list[i].szName);
                VDATA_TRACE(" i : %d", i);
                if (list[i].szName != NULL) {
                        VDATA_TRACE(" list[%d].szName != NULL", i);
@@ -512,8 +512,8 @@ __VCardFreeVTreeMemory(VTree * pTree)
                                while (pCurParam != NULL) {
                                        pNextParam = pCurParam->pNext;
                                        VDATA_TRACE("pNEXT ==> %p", pCurParam->pNext);
-                                       VDATA_TRACE("pPARAM ==> %p", pCurParam->parameter);
-                                       VDATA_TRACE("pVALUE ==> %p", pCurParam->paramValue);
+                                       VDATA_TRACE("pPARAM ==> %d", pCurParam->parameter);
+                                       VDATA_TRACE("pVALUE ==> %d", pCurParam->paramValue);
                                        VDATA_TRACE("pCurParam : %p", pCurParam);
                                        VDATA_TRACE("pCurParam->parameter : %d", pCurParam->parameter);
                                        VDATA_TRACE("pCurParam->paramValue : %d", pCurParam->paramValue);
index 40235d5f6253b0f07b1e2fab239c5dd37480d951..d3ac003efab0a31f0ee65b942617f9508c3abbfb 100755 (executable)
@@ -214,7 +214,7 @@ __VMsgGetValue(char* szString, const ValueObj list[], int size)
 
        for (i = 0; i < size-1; i++) {
                VDATA_TRACE(" i : %d", i);
-               VDATA_TRACE(" for loop %d < %d, list[%d] : %p, list[%d].szName : %p", i, size, i, list[i], i, list[i].szName);
+               VDATA_TRACE(" for loop %d < %d, list[%d] : %d, list[%d].szName : %p", i, size, i, list[i].flag, i, list[i].szName);
                VDATA_TRACE(" i : %d", i);
                if (list[i].szName != NULL) {
                        VDATA_TRACE(" list[%d].szName != NULL", i);
@@ -464,8 +464,8 @@ __VMsgFreeVTreeMemory(VTree * pTree)
                                while (pCurParam != NULL) {
                                        pNextParam = pCurParam->pNext;
                                        VDATA_TRACE("pNEXT ==> %p", pCurParam->pNext);
-                                       VDATA_TRACE("pPARAM ==> %p", pCurParam->parameter);
-                                       VDATA_TRACE("pVALUE ==> %p", pCurParam->paramValue);
+                                       VDATA_TRACE("pPARAM ==> %d", pCurParam->parameter);
+                                       VDATA_TRACE("pVALUE ==> %d", pCurParam->paramValue);
                                        VDATA_TRACE("pCurParam : %p", pCurParam);
                                        VDATA_TRACE("pCurParam->parameter : %d", pCurParam->parameter);
                                        VDATA_TRACE("pCurParam->paramValue : %d", pCurParam->paramValue);
@@ -1374,7 +1374,7 @@ __VMsgTypeEncode(VObject *pTypeObj, char *pType)
 
                memset(pRes, '\0', ((len * 8 / 6) + 48));
                _VB64Encode(pRes, pEncode, biLen);
-               VDATA_TRACE("Origin Size: %d, Allocated Size %d, Coverted Size: %d\n", biLen, (len * 8 / 6) + 48, strlen(pRes));
+               VDATA_TRACE("Origin Size: %d, Allocated Size %d, Coverted Size: %lu\n", biLen, (len * 8 / 6) + 48, strlen(pRes));
                VFREE(pEncode);
        } else {
                if ((pRes = (char *)calloc(1, len+30)) == NULL) {