Skip to content

does not compile  #1

Open
Open
@grharry

Description

@grharry

In file included from /opt/esp/idf/components/log/include/esp_log.h:15,
from /project/main/app_main.c:3:
/project/main/app_main.c: In function 'rf_task':
/opt/esp/idf/components/log/include/esp_log_color.h:98:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
98 | #define LOG_COLOR_E ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT'
182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:28:21: note: in expansion of macro 'ESP_LOGI'
28 | ESP_LOGI(TAG, "start: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:99:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
99 | #define LOG_COLOR_W ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT'
183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:28:21: note: in expansion of macro 'ESP_LOGI'
28 | ESP_LOGI(TAG, "start: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:101:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
101 | #define LOG_COLOR_D ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT'
184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:28:21: note: in expansion of macro 'ESP_LOGI'
28 | ESP_LOGI(TAG, "start: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:102:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
102 | #define LOG_COLOR_V ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT'
185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:28:21: note: in expansion of macro 'ESP_LOGI'
28 | ESP_LOGI(TAG, "start: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:100:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
100 | #define LOG_COLOR_I ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT'
186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:28:21: note: in expansion of macro 'ESP_LOGI'
28 | ESP_LOGI(TAG, "start: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:98:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
98 | #define LOG_COLOR_E ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT'
182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:31:21: note: in expansion of macro 'ESP_LOGI'
31 | ESP_LOGI(TAG, "continue: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:99:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
99 | #define LOG_COLOR_W ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT'
183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:31:21: note: in expansion of macro 'ESP_LOGI'
31 | ESP_LOGI(TAG, "continue: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:101:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
101 | #define LOG_COLOR_D ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT'
184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:31:21: note: in expansion of macro 'ESP_LOGI'
31 | ESP_LOGI(TAG, "continue: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:102:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
102 | #define LOG_COLOR_V ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT'
185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:31:21: note: in expansion of macro 'ESP_LOGI'
31 | ESP_LOGI(TAG, "continue: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:100:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
100 | #define LOG_COLOR_I ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT'
186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:31:21: note: in expansion of macro 'ESP_LOGI'
31 | ESP_LOGI(TAG, "continue: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:98:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
98 | #define LOG_COLOR_E ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_E'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:182:86: note: in expansion of macro 'LOG_FORMAT'
182 | if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:34:21: note: in expansion of macro 'ESP_LOGI'
34 | ESP_LOGI(TAG, "stop: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:99:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
99 | #define LOG_COLOR_W ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_W'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:183:86: note: in expansion of macro 'LOG_FORMAT'
183 | else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:34:21: note: in expansion of macro 'ESP_LOGI'
34 | ESP_LOGI(TAG, "stop: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:101:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
101 | #define LOG_COLOR_D ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_D'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:184:86: note: in expansion of macro 'LOG_FORMAT'
184 | else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:34:21: note: in expansion of macro 'ESP_LOGI'
34 | ESP_LOGI(TAG, "stop: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:102:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
102 | #define LOG_COLOR_V ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_V'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:185:86: note: in expansion of macro 'LOG_FORMAT'
185 | else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:34:21: note: in expansion of macro 'ESP_LOGI'
34 | ESP_LOGI(TAG, "stop: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~
/opt/esp/idf/components/log/include/esp_log_color.h:100:31: error: format '%X' expects argument of type 'unsigned int', but argument 6 has type 'uint32_t' {aka 'long unsigned int'} [-Werror=format=]
100 | #define LOG_COLOR_I ""
| ^~
/opt/esp/idf/components/log/include/esp_log.h:62:37: note: in expansion of macro 'LOG_COLOR_I'
62 | #define LOG_FORMAT(letter, format) LOG_COLOR
## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:186:86: note: in expansion of macro 'LOG_FORMAT'
186 | else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##VA_ARGS); }
| ^~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:205:38: note: in expansion of macro 'ESP_LOG_LEVEL'
205 | if (_ESP_LOG_ENABLED(level)) ESP_LOG_LEVEL(level, tag, format, ##VA_ARGS);
| ^~~~~~~~~~~~~
/opt/esp/idf/components/log/include/esp_log.h:114:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
114 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##VA_ARGS)
| ^~~~~~~~~~~~~~~~~~~
/project/main/app_main.c:34:21: note: in expansion of macro 'ESP_LOGI'
34 | ESP_LOGI(TAG, "stop: %06X (protocol: %02X, %i bits)", rfcode.raw_code, rfcode.protocol, rfcode.bits);
| ^~~~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions