Rename the function to a more accurate name
@@ -47,9 +47,9 @@ volatile static uint32_t xInterfaceState = INTERFACE_DOWN;
/* protect the function declaration itself instead of using
#if everywhere. */
#if ( ipconfigHAS_PRINTF != 0 )
- static void prvMonitorResources();
+ static void prvPrintResourceStats();
#else
- #define prvMonitorResources()
+ #define prvPrintResourceStats()
#endif
BaseType_t xNetworkInterfaceInitialise( void )
@@ -86,8 +86,7 @@ BaseType_t xNetworkInterfaceOutput( NetworkBufferDescriptor_t *const pxNetworkBu
}
}
- /* Print the necessary debugging logs */
- prvMonitorResources();
+ prvPrintResourceStats();
if (xReleaseAfterSend == pdTRUE) {
vReleaseNetworkBufferAndDescriptor(pxNetworkBuffer);
@@ -116,7 +115,7 @@ esp_err_t wlanif_input(void *netif, void *buffer, uint16_t len, void *eb)
IPStackEvent_t xRxEvent = { eNetworkRxEvent, NULL };
const TickType_t xDescriptorWaitTime = pdMS_TO_TICKS( 250 );
- prvMonitorResources();
+ prvPrintResourceStats();
if( eConsiderFrameForProcessing( buffer ) != eProcessBuffer ) {
ESP_LOGD(TAG, "Dropping packet");
@@ -148,7 +147,7 @@ esp_err_t wlanif_input(void *netif, void *buffer, uint16_t len, void *eb)
}
#if ( ipconfigHAS_PRINTF != 0 )
- static void prvMonitorResources()
+ static void prvPrintResourceStats()
{
static UBaseType_t uxLastMinBufferCount = 0u;
static UBaseType_t uxCurrentBufferCount = 0u;
