factory_demo build failure involving ESP_LOGI

SmallProj
Posts: 5
Joined: Fri Dec 27, 2024 4:22 am

factory_demo build failure involving ESP_LOGI

Postby SmallProj » Sat Jan 18, 2025 7:13 pm

I am building the esp-box factory_demo application and I get a lot of compilation errors like this:

Code: Select all

...factory_demo/main/app/app_sr.c:205:27: error: expected ')' before 'LOG_BOLD'
  205 |             ESP_LOGI(TAG, LOG_BOLD(LOG_COLOR_GREEN) "AFE_FETCH_CHANNEL_VERIFIED, channel index: %d\n", res->trigger_channel_id);
The last git transaction is dated Tue Jul 30 17:20:12 2024 +0800.
I have esp-idf version 5.4. The hardware is an ESP-BOX-S3-3.
I think ESP_LOGI is expecting a format string as the second parameter.
Platform is Debian Linux.

SmallProj
Posts: 5
Joined: Fri Dec 27, 2024 4:22 am

Re: factory_demo build failure involving ESP_LOGI

Postby SmallProj » Sun Jan 19, 2025 10:27 pm

Removing the two uses of the LOG_BOLD macro fixed the problem.
I am not sure that putting escape sequences into log messages is all that useful.

ESP_Xuxin
Posts: 86
Joined: Thu Sep 22, 2022 3:35 am

Re: factory_demo build failure involving ESP_LOGI

Postby ESP_Xuxin » Mon Jan 20, 2025 2:59 am


Who is online

Users browsing this forum: No registered users and 11 guests