Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Fix/ota log level #1919

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions demos/ota/aws_iot_ota_update_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ static void App_OTACompleteCallback( OTA_JobEvent_t eEvent )
{
OTA_Err_t xErr = kOTA_Err_Uninitialized;

DEFINE_OTA_METHOD_NAME( "App_OTACompleteCallback" );

/* OTA job is completed. so delete the MQTT and network connection. */
if( eEvent == eOTA_JobEvent_Activate )
Expand Down
7 changes: 7 additions & 0 deletions libraries/freertos_plus/aws/ota/src/aws_iot_ota_agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ static OTA_Err_t prvUserAbortHandler( OTA_EventData_t * pxEventData )

static OTA_Err_t prvShutdownHandler( OTA_EventData_t * pxEventData )
{
DEFINE_OTA_METHOD_NAME( "prvShutdownHandler" );
( void ) pxEventData;

OTA_LOG_L2( "[%s] Shutting Down OTA Agent. %d\r\n", OTA_METHOD_NAME );
Expand Down Expand Up @@ -1153,6 +1154,8 @@ static OTA_Err_t prvResetDevice( void )

void prvOTAEventBufferFree( OTA_EventData_t * const pxBuffer )
{
DEFINE_OTA_METHOD_NAME( "prvOTAEventBufferFree" );

if( xSemaphoreTake( xOTA_Agent.xOTA_ThreadSafetyMutex, portMAX_DELAY ) == pdPASS )
{
pxBuffer->bBufferUsed = false;
Expand All @@ -1166,6 +1169,8 @@ void prvOTAEventBufferFree( OTA_EventData_t * const pxBuffer )

OTA_EventData_t * prvOTAEventBufferGet( void )
{
DEFINE_OTA_METHOD_NAME( "prvOTAEventBufferGet" );

uint32_t ulIndex = 0;
OTA_EventData_t * pxOTAFreeMsg = NULL;

Expand Down Expand Up @@ -2425,6 +2430,8 @@ static void prvOTAAgentTask( void * pUnused )

BaseType_t OTA_SignalEvent( const OTA_EventMsg_t * const pxEventMsg )
{
DEFINE_OTA_METHOD_NAME( "OTA_SignalEvent" );

BaseType_t xErr = pdFALSE;

/*
Expand Down