From 7a3e6b117fa1a5fad96dc51776337a2bfb17a27e Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Fri, 11 Oct 2024 12:52:05 -0700 Subject: [PATCH] fix stack used message --- .../ESP-IDF/examples/wolfssl_server/main/server-tls.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/server-tls.c b/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/server-tls.c index f8c850f35e..cf2df087ab 100644 --- a/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/server-tls.c +++ b/IDE/Espressif/ESP-IDF/examples/wolfssl_server/main/server-tls.c @@ -306,8 +306,9 @@ WOLFSSL_ESP_TASK tls_smp_server_task(void *args) #endif #endif #ifdef WOLFSSL_EXAMPLE_VERBOSITY - ESP_LOGI(TAG, "Initial stack used: %d\n", TLS_SMP_SERVER_TASK_BYTES -#endif - uxTaskGetStackHighWaterMark(NULL) ); + ESP_LOGI(TAG, "Initial stack used: %d\n", + TLS_SMP_SERVER_TASK_BYTES - uxTaskGetStackHighWaterMark(NULL) ); +#endif ESP_LOGI(TAG, "accept clients..."); /* Continue to accept clients until shutdown is issued */ while (!shutdown) { @@ -385,8 +386,8 @@ WOLFSSL_ESP_TASK tls_smp_server_task(void *args) wolfSSL_free(ssl); /* Free the wolfSSL object */ close(connd); /* Close the connection to the client */ #ifdef WOLFSSL_EXAMPLE_VERBOSITY - ESP_LOGI(TAG, "Stack used: %d\n", TLS_SMP_SERVER_TASK_BYTES - - uxTaskGetStackHighWaterMark(NULL) ); + ESP_LOGI(TAG, "Stack used: %d\n", + TLS_SMP_SERVER_TASK_BYTES - uxTaskGetStackHighWaterMark(NULL)); #endif } /* !shutdown */ /* Cleanup and return */