Fix dlog build error 47/223747/1 accepted/tizen/unified/20200207.122411 submit/tizen/20200206.053818
authorSampath Arunachalam <sampath.a@samsung.com>
Mon, 3 Feb 2020 15:53:42 +0000 (21:23 +0530)
committerSampath Arunachalam <sampath.a@samsung.com>
Mon, 3 Feb 2020 15:53:42 +0000 (21:23 +0530)
[Model] Tizen5.5
[BinType] AP
[Customer] Open
[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A
[Problem] Fix dlog build error
[Cause & Measure] Fix dlog build error
[Checking Method] N/A
[Team] Message
[Developer] A Sampath
[Solution company] Samsung
[Change Type] etc

Change-Id: I95ca165d2da792c7629e5062df53f0f567e739ca

plugin/sms_plugin/3gpp2/Sms3gpp2EventHandler.cpp
plugin/sms_plugin/3gpp2/Sms3gpp2WapPushHandler.cpp
plugin/sms_plugin/SmsPluginDSHandler.cpp

index 48e3146..d61984e 100755 (executable)
@@ -587,7 +587,7 @@ void Sms3gpp2EventHandler::handleMsgIncoming(TapiHandle *handle, sms_3gpp2_trans
        MSG_DEBUG("msgInfo.displayTime : %s", ctime(&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 : %zu", msgInfo.dataSize);
 
        if (msgInfo.bTextSms == true) {
                MSG_DEBUG("msgInfo.msgText : %s", msgInfo.msgText);
@@ -723,7 +723,7 @@ void Sms3gpp2EventHandler::handleCbMsgIncoming(TapiHandle *handle, sms_3gpp2_tra
        MSG_DEBUG("msgInfo.displayTime : %s", ctime(&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 : %zu", msgInfo.dataSize);
        MSG_DEBUG("msgInfo.msgId : %d", msgInfo.msgId);
 
        if (msgInfo.bTextSms == true) {
index 9c92c99..ecec003 100755 (executable)
@@ -1611,7 +1611,7 @@ void Sms3gpp2WapPushHandler::handleSLMessage(char* pPushBody, int PushBodyLen, b
 
        msgInfo.dataSize = sizeof(pushMsg);
 
-       MSG_DEBUG("dataSize : %d", msgInfo.dataSize);
+       MSG_DEBUG("dataSize : %zu", msgInfo.dataSize);
 
        /* Add WAP Push Msg into DB */
        err = SmsPluginStorage::instance()->checkMessage(&msgInfo);
@@ -3225,11 +3225,11 @@ void Sms3gpp2WapPushHandler::wspHeaderDecodeAuth(unsigned long fieldValueLen, un
        /* skip 'basic' code */
        iField++;
        memset(authStr, 0x00, sizeof(authStr));
-       snprintf(authStr, sizeof(authStr), "%%%ds", sizeof(userId));
+       snprintf(authStr, sizeof(authStr), "%%%zus", sizeof(userId));
        sscanf((char*)(fieldValue + iField), authStr, userId);
        iField = iField + AcStrlen((char*)userId) + 1;
        memset(authStr, 0x00, sizeof(authStr));
-       snprintf(authStr, sizeof(authStr), "%%%ds", sizeof(passWd));
+       snprintf(authStr, sizeof(authStr), "%%%zus", sizeof(passWd));
        sscanf((char*)(fieldValue + iField), authStr, passWd);
        iField = iField + AcStrlen((char*)userId) + 1;
        int wrn = snprintf((char*)*pDecodedString, (sizeof(char)*WSP_STANDARD_STR_LEN_MAX*2), "basic %s/%s", userId, passWd);
@@ -3256,7 +3256,7 @@ void Sms3gpp2WapPushHandler::wspHeaderDecodeChallenge(unsigned long fieldValueLe
        /* skip 'basic' code */
        iField++;
        memset(authStr, 0x00, sizeof(authStr));
-       snprintf(authStr, sizeof(authStr), "%%%ds", sizeof(userId));
+       snprintf(authStr, sizeof(authStr), "%%%zus", sizeof(userId));
        sscanf((char*)(fieldValue + iField), authStr, userId);
        iField = iField + AcStrlen((char*)userId) + 1;
 
index 88c1d77..f14e82b 100755 (executable)
@@ -114,7 +114,7 @@ TapiHandle *SmsPluginDSHandler::getTelHandle(int simIndex)
 
                return tapiHandles[tapiHandles.size() - 1].first;
        } else {
-               MSG_ERR("Error tapiHandles.size [%d]", tapiHandles.size());
+               MSG_ERR("Error tapiHandles.size [%zu]", tapiHandles.size());
                return NULL;
        }
 }