Merge branch 'fix/linux-build-error-log-color' into 'release/v5.5'

fix(log): increase s_lvl_color array size to avoid GCC 15 truncation warning

See merge request espressif/esp-idf!47865
This commit is contained in:
Marius Vikhammer
2026-04-28 14:11:51 +08:00
+1 -1
View File
@@ -28,7 +28,7 @@ static __attribute__((unused)) const char s_lvl_name[ESP_LOG_MAX] = {
'V', // VERBOSE
};
static __attribute__((unused)) const char s_lvl_color[ESP_LOG_MAX][8] = {
static __attribute__((unused)) const char s_lvl_color[ESP_LOG_MAX][9] = {
"\0", // NONE
LOG_ANSI_COLOR_REGULAR(LOG_ANSI_COLOR_RED)"\0", // ERROR
LOG_ANSI_COLOR_REGULAR(LOG_ANSI_COLOR_YELLOW)"\0", // WARNING