Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0dd517d

Browse filesBrowse files
ankostisme-no-dev
andauthored
enh(log) salvage TAG from ESP_IDF log-statements > (#6567)
by converting result log-rows from the 1st line to the 2nd (`NET` is the tag): ``` [ 73419][D][telelogger.cpp:915] telemetry(): state: 33C [ 73419][D][telelogger.cpp:915] telemetry(): [NET] state: 33C ``` Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
1 parent 823fe77 commit 0dd517d
Copy full SHA for 0dd517d

File tree

1 file changed

+10
-10
lines changed
Filter options

1 file changed

+10
-10
lines changed

‎cores/esp32/esp32-hal-log.h

Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-log.h
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ void log_print_buf(const uint8_t *b, size_t len);
206206
#undef ESP_EARLY_LOGD
207207
#undef ESP_EARLY_LOGV
208208

209-
#define ESP_LOGE(tag, ...) log_e(__VA_ARGS__)
210-
#define ESP_LOGW(tag, ...) log_w(__VA_ARGS__)
211-
#define ESP_LOGI(tag, ...) log_i(__VA_ARGS__)
212-
#define ESP_LOGD(tag, ...) log_d(__VA_ARGS__)
213-
#define ESP_LOGV(tag, ...) log_v(__VA_ARGS__)
214-
#define ESP_EARLY_LOGE(tag, ...) isr_log_e(__VA_ARGS__)
215-
#define ESP_EARLY_LOGW(tag, ...) isr_log_w(__VA_ARGS__)
216-
#define ESP_EARLY_LOGI(tag, ...) isr_log_i(__VA_ARGS__)
217-
#define ESP_EARLY_LOGD(tag, ...) isr_log_d(__VA_ARGS__)
218-
#define ESP_EARLY_LOGV(tag, ...) isr_log_v(__VA_ARGS__)
209+
#define ESP_LOGE(tag, format, ...) log_e("[%s] " format, tag, ##__VA_ARGS__)
210+
#define ESP_LOGW(tag, format, ...) log_w("[%s] " format, tag, ##__VA_ARGS__)
211+
#define ESP_LOGI(tag, format, ...) log_i("[%s] " format, tag, ##__VA_ARGS__)
212+
#define ESP_LOGD(tag, format, ...) log_d("[%s] " format, tag, ##__VA_ARGS__)
213+
#define ESP_LOGV(tag, format, ...) log_v("[%s] " format, tag, ##__VA_ARGS__)
214+
#define ESP_EARLY_LOGE(tag, format, ...) isr_log_e("[%s] " format, tag, ##__VA_ARGS__)
215+
#define ESP_EARLY_LOGW(tag, format, ...) isr_log_w("[%s] " format, tag, ##__VA_ARGS__)
216+
#define ESP_EARLY_LOGI(tag, format, ...) isr_log_i("[%s] " format, tag, ##__VA_ARGS__)
217+
#define ESP_EARLY_LOGD(tag, format, ...) isr_log_d("[%s] " format, tag, ##__VA_ARGS__)
218+
#define ESP_EARLY_LOGV(tag, format, ...) isr_log_v("[%s] " format, tag, ##__VA_ARGS__)
219219
#endif
220220
#endif
221221

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.