mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
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
This commit is contained in:
@@ -164,7 +164,7 @@ void esp_log_level_set(const char* tag, esp_log_level_t level)
|
|||||||
#ifdef LOG_BUILTIN_CHECKS
|
#ifdef LOG_BUILTIN_CHECKS
|
||||||
assert(i == 0 || s_log_cache[(i - 1) / 2].generation < s_log_cache[i].generation);
|
assert(i == 0 || s_log_cache[(i - 1) / 2].generation < s_log_cache[i].generation);
|
||||||
#endif
|
#endif
|
||||||
if (s_log_cache[i].tag == tag) {
|
if (strcmp(s_log_cache[i].tag,tag) == 0) {
|
||||||
s_log_cache[i].level = level;
|
s_log_cache[i].level = level;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user