LOG COLOR STILL ERROR ON BUILD by wront type INT vs UINT32_T (IDFGH-12189) #13244
Closed
3 tasks done
Labels
Resolution: Won't Do
This will not be worked on
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
5.2
Espressif SoC revision.
esp32
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
esp32
Power Supply used.
USB
What is the expected behavior?
C:/Espressif/frameworks/esp-idf-v5.2/components/log/include/esp_log.h:291:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
291 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
why espressif doenst fix this right away, everyone complain about it but no one takes action to a simple question???
What is the actual behavior?
work as intent, if the compiler has PROBLEM fix the code to work as the compiler wants it to do, its impossible in 2024 that a simple question couldnt be addressed right away.
Steps to reproduce.
try to build any log color app will bring error.
C:/Espressif/frameworks/esp-idf-v5.2/components/log/include/esp_log.h:291:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
291 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
Debug Logs.
More Information.
C:/Espressif/frameworks/esp-idf-v5.2/components/log/include/esp_log.h:291:27: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
291 | #define LOG_COLOR(COLOR) "\033[0;" COLOR "m"
The text was updated successfully, but these errors were encountered: