Skip to content

Commit 4f7e88a

Browse files
authored
Fixes build error if TAG is const (espressif#6351)
1 parent b254765 commit 4f7e88a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/esp32/esp32-hal-log.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void log_print_buf(const uint8_t *b, size_t len);
158158
#define isr_log_e(format, ...) ets_printf(ARDUHAL_LOG_FORMAT(E, format), ##__VA_ARGS__)
159159
#define log_buf_e(b,l) do{ARDUHAL_LOG_COLOR_PRINT(E);log_print_buf(b,l);ARDUHAL_LOG_COLOR_PRINT_END;}while(0)
160160
#else
161-
#define log_e(format, ...) do {log_to_esp(TAG, ESP_LOG_ERROR, format, ##__VA_ARGS__);}while(0)
161+
#define log_e(format, ...) do {ESP_LOG_LEVEL_LOCAL(ESP_LOG_ERROR, TAG, format, ##__VA_ARGS__);}while(0)
162162
#define isr_log_e(format, ...) do {ets_printf(LOG_FORMAT(E, format), esp_log_timestamp(), TAG, ##__VA_ARGS__);}while(0)
163163
#define log_buf_e(b,l) do {ESP_LOG_BUFFER_HEXDUMP(TAG, b, l, ESP_LOG_ERROR);}while(0)
164164
#endif
@@ -187,9 +187,9 @@ void log_print_buf(const uint8_t *b, size_t len);
187187
#include "esp_log.h"
188188

189189
#ifdef USE_ESP_IDF_LOG
190-
#ifndef TAG
191-
#define TAG "ARDUINO"
192-
#endif
190+
//#ifndef TAG
191+
//#define TAG "ARDUINO"
192+
//#endif
193193
//#define log_n(format, ...) myLog(ESP_LOG_NONE, format, ##__VA_ARGS__)
194194
#else
195195
#ifdef CONFIG_ARDUHAL_ESP_LOG

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy