From ae7030ccd052b1e6a0f383e2e8facb374c398953 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 14 Sep 2021 16:57:15 +0530 Subject: [PATCH] esp_log: add note about reentrancy for custom logging function --- components/log/include/esp_log.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/log/include/esp_log.h b/components/log/include/esp_log.h index 45fff0c8e4..0e3148f62d 100644 --- a/components/log/include/esp_log.h +++ b/components/log/include/esp_log.h @@ -88,6 +88,9 @@ esp_log_level_t esp_log_level_get(const char* tag); * output to some other destination, such as file or network. Returns the original * log handler, which may be necessary to return output to the previous destination. * + * @note Please note that function callback here must be re-entrant as it can be + * invoked in parallel from multiple thread context. + * * @param func new Function used for output. Must have same signature as vprintf. * * @return func old Function used for output.