Skip to content

Commit 2e33dbf

Browse files
committed
Merge branch 'bugfix/esp_log_level_set_strcmp' into 'master'
Fix esp_log_level_set string matching (github PR 1557) See merge request idf/esp-idf!1872
2 parents e676676 + 750c8c0 commit 2e33dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/log/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void esp_log_level_set(const char* tag, esp_log_level_t level)
164164
#ifdef LOG_BUILTIN_CHECKS
165165
assert(i == 0 || s_log_cache[(i - 1) / 2].generation < s_log_cache[i].generation);
166166
#endif
167-
if (s_log_cache[i].tag == tag) {
167+
if (strcmp(s_log_cache[i].tag,tag) == 0) {
168168
s_log_cache[i].level = level;
169169
break;
170170
}

0 commit comments

Comments
 (0)