Commit 290d5802 authored by hyuna0213.jo's avatar hyuna0213.jo Committed by Uze Choi

Removed unnecessary/duplicated log in connectivity abstraction

remove unnecessary/duplicated log in connectivity abstraction
to print the correct message.

Change-Id: I2d0c4535bb4abc576d7e7130b0d38111f37cd3e0
Signed-off-by: default avatarhyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14631Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarJaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent 7ddad748
......@@ -469,9 +469,6 @@ static CAResult_t CAProcessMulticastData(const CAData_t *data)
CALogPDUInfo(pdu, data->remoteEndpoint);
OIC_LOG(DEBUG, TAG, "pdu to send :");
OIC_LOG_BUFFER(DEBUG, TAG, (uint8_t*)pdu->transport_hdr, pdu->length);
res = CASendMulticastData(data->remoteEndpoint, pdu->transport_hdr, pdu->length, data->dataType);
if (CA_STATUS_OK != res)
{
......@@ -1224,26 +1221,21 @@ void CALogPDUInfo(coap_pdu_t *pdu, const CAEndpoint_t *endpoint)
VERIFY_NON_NULL_VOID(pdu, TAG, "pdu");
VERIFY_NON_NULL_VOID(endpoint, TAG, "endpoint");
OIC_LOG_V(DEBUG, TAG, "PDU Maker - payload : %s", pdu->data);
#ifdef WITH_TCP
if (CAIsSupportedCoAPOverTCP(endpoint->adapter))
{
OIC_LOG(DEBUG, TAG, "pdu header data :");
OIC_LOG_BUFFER(DEBUG, TAG, (const uint8_t *) pdu->transport_hdr, pdu->length);
}
else
#endif
#ifdef WITH_BWT
if (CAIsSupportedBlockwiseTransfer(endpoint->adapter))
{
OIC_LOG_V(DEBUG, TAG, "PDU Maker - type : %d", pdu->transport_hdr->udp.type);
OIC_LOG_V(DEBUG, TAG, "PDU Maker - code : %d", pdu->transport_hdr->udp.code);
}
#endif
OIC_LOG(DEBUG, TAG, "PDU Maker - token :");
OIC_LOG(DEBUG, TAG, "PDU Maker - token :");
OIC_LOG_BUFFER(DEBUG, TAG, pdu->transport_hdr->udp.token,
pdu->transport_hdr->udp.token_length);
OIC_LOG_BUFFER(DEBUG, TAG, pdu->transport_hdr->udp.token,
pdu->transport_hdr->udp.token_length);
}
OIC_LOG(DEBUG, TAG, "PDU Maker - payload :");
OIC_LOG_BUFFER(DEBUG, TAG, (const uint8_t *) pdu->transport_hdr, pdu->length);
}
static void CALogPayloadInfo(CAInfo_t *info)
......
......@@ -106,6 +106,9 @@ coap_pdu_t *CAGeneratePDU(uint32_t code, const CAInfo_t *info, const CAEndpoint_
VERIFY_NON_NULL_RET(endpoint, TAG, "endpoint", NULL);
VERIFY_NON_NULL_RET(optlist, TAG, "optlist", NULL);
OIC_LOG_V(DEBUG, TAG, "generate pdu for [%d]adapter, [%d]flags",
endpoint->adapter, endpoint->flags);
coap_pdu_t *pdu = NULL;
// RESET have to use only 4byte (empty message)
......@@ -135,6 +138,8 @@ coap_pdu_t *CAGeneratePDU(uint32_t code, const CAInfo_t *info, const CAEndpoint_
{
if (info->resourceUri)
{
OIC_LOG_V(DEBUG, TAG, "uri : %s", info->resourceUri);
uint32_t length = strlen(info->resourceUri);
if (CA_MAX_URI_LENGTH < length)
{
......@@ -396,8 +401,6 @@ CAResult_t CAParseURI(const char *uriInfo, coap_list_t **optlist)
VERIFY_NON_NULL(uriInfo, TAG, "uriInfo");
VERIFY_NON_NULL(optlist, TAG, "optlist");
OIC_LOG_V(DEBUG, TAG, "url : %s", uriInfo);
/* split arg into Uri-* options */
coap_uri_t uri;
coap_split_uri((unsigned char *) uriInfo, strlen(uriInfo), &uri);
......
......@@ -191,8 +191,6 @@ u_arraylist_t *CAFindInterfaceChange()
CAResult_t CAIPStartNetworkMonitor(CAIPAdapterStateChangeCallback callback,
CATransportAdapter_t adapter)
{
OIC_LOG(DEBUG, TAG, "IN");
if (!g_adapterCallbackList)
{
// Initialize Wifi service.
......@@ -218,6 +216,7 @@ CAResult_t CAIPStartNetworkMonitor(CAIPAdapterStateChangeCallback callback,
}
}
OIC_LOG(DEBUG, TAG, "Initialize network monitoring successfully");
return CAIPSetNetworkMonitorCallback(callback, adapter);
}
......@@ -253,6 +252,7 @@ CAResult_t CAIPStopNetworkMonitor(CATransportAdapter_t adapter)
}
}
OIC_LOG(DEBUG, TAG, "Network monitoring terminated successfully");
return CA_STATUS_OK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment