From 01b4f640d96f77c2bda2d2b4c17d7e011facf3be Mon Sep 17 00:00:00 2001 From: Chen Yi Qun Date: Wed, 29 Jul 2020 20:46:37 +0800 Subject: [PATCH] driver, http_client, web_socket, tcp_transport: remove __FILE__ from log messages __FILE__ macro in the error messages adds full paths to the production binarys, remove __FILE__ from the ESP_LOGE. Closes https://github.com/espressif/esp-idf/issues/5637 Merges https://github.com/espressif/esp-idf/pull/5638 * Original commit: espressif/esp-idf@caaf62bdad965e6b58bba74171986414057f6757 --- components/esp_websocket_client/esp_websocket_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_websocket_client/esp_websocket_client.c b/components/esp_websocket_client/esp_websocket_client.c index 82520c624..5059e36dd 100644 --- a/components/esp_websocket_client/esp_websocket_client.c +++ b/components/esp_websocket_client/esp_websocket_client.c @@ -42,7 +42,7 @@ static const char *TAG = "WEBSOCKET_CLIENT"; #define WEBSOCKET_PINGPONG_TIMEOUT_SEC (120) #define ESP_WS_CLIENT_MEM_CHECK(TAG, a, action) if (!(a)) { \ - ESP_LOGE(TAG,"%s:%d (%s): %s", __FILE__, __LINE__, __FUNCTION__, "Memory exhausted"); \ + ESP_LOGE(TAG,"%s(%d): %s", __FUNCTION__, __LINE__, "Memory exhausted"); \ action; \ }