diff --git a/lib/include/platform_esp32_idf.h b/lib/include/platform_esp32_idf.h index c3edb9f..3c14567 100644 --- a/lib/include/platform_esp32_idf.h +++ b/lib/include/platform_esp32_idf.h @@ -29,12 +29,12 @@ long long platform_tick_get_ms(void); void ms_to_timeval(int timeout_ms, struct timeval *tv); #define ESP_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; \ } #define ESP_OK_CHECK(TAG, a, action) if ((a) != ESP_OK) { \ - ESP_LOGE(TAG,"%s:%d (%s): %s", __FILE__, __LINE__, __FUNCTION__, "Failed with non ESP_OK err code"); \ + ESP_LOGE(TAG,"%s(%d): %s", __FUNCTION__, __LINE__, "Failed with non ESP_OK err code"); \ action; \ }