Skip to content

Commit 1ce6ecd

Browse files
author
sreeja
committed
coverity test
1 parent 4c80771 commit 1ce6ecd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

source/TR-181/middle_layer_src/cosa_moca_internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static void MocaTelemetryPush()
488488
rc = memset_s(tmp, sizeof(tmp), 0, sizeof(tmp));
489489
ERR_CHK(rc);
490490
get_formatted_time(tmp);
491-
snprintf(buff, 2256, "%s MOCA_MAC_%lu:%s\n", tmp, ulIndex+1 , mac_buff1);
491+
snprintf(buff, 2256, "%s MOCA_MAC_%lu:%s%s\n", tmp, ulIndex+1 , mac_buff1);
492492
write_to_file(moca_telemetry_log, buff);
493493
if (pMoCAAssocDevice)
494494
{

source/TR-181/middle_layer_src/cosa_moca_network_info.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ void Set_MoCADevices_Status_Offline()
584584
MoCADeviceInfo* cur = mocaList->deviceList;
585585
while(cur != NULL)
586586
{
587-
CcspMoCAConsoleTrace(("RDK_LOG_DEBUG, CcspMoCA %s cur->Status %d \n" , cur->Status));
588-
CcspMoCAConsoleTrace(("RDK_LOG_DEBUG, CcspMoCA %s cur->Updated %d \n", __FUNCTION__ , cur->Updated));
587+
CcspMoCAConsoleTrace(("RDK_LOG_DEBUG, CcspMoCA %s cur->Status %d \n", __FUNCTION__ , cur->Status)); CcspMoCAConsoleTrace(("RDK_LOG_DEBUG, CcspMoCA %s cur->Updated %d \n", __FUNCTION__ , cur->Updated));
589588
CcspMoCAConsoleTrace(("RDK_LOG_DEBUG, CcspMoCA %s cur->StatusChange %d \n", __FUNCTION__ , cur->StatusChange ));
590589

591590
if(!cur->Updated && cur->Status)

0 commit comments

Comments
 (0)