Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lwip_debug.c has log format issues resulting in compilation failure (IDFGH-11897) #12982

Closed
3 tasks done
atanisoft opened this issue Jan 15, 2024 · 4 comments
Closed
3 tasks done
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@atanisoft
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

release/v5.2 tip -- e49823f

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

With LWIP_DEBUG disabled I'd expect no compilation failures from LWIP in lwip_debug.c.

What is the actual behavior?

Compilation fails due to the following:

In file included from /scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:16:
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c: In function 'dbg_lwip_tcp_pcb_one_show':
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:67: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |                                                                   ^
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:67: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |                                                                   ^
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:93:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   93 |     ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:112: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |                                                                                                                ^
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:112: error: format '%d' expects argument of type 'int', but argument 8 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |                                                                                                                ^
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 8 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 8 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 8 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 7 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:1: error: format '%d' expects argument of type 'int', but argument 8 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:95:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   95 |     ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:80: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      |                                                                                ^
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      |     ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:1: error: format '%d' expects argument of type 'int', but argument 6 has type 'tcpwnd_size_t' {aka 'long unsigned int'} [-Werror=format=]
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      | ^   ~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:308:59: note: in definition of macro 'LOG_FORMAT'
  308 | #define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%" PRIu32 ") %s: " format LOG_RESET_COLOR "\n"
      |                                                           ^~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:464:41: note: in expansion of macro 'ESP_LOG_LEVEL'
  464 |         if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
      |                                         ^~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/log/include/esp_log.h:368:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
  368 | #define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO,    tag, format, ##__VA_ARGS__)
      |                                      ^~~~~~~~~~~~~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/include/lwipopts.h:1561:41: note: in expansion of macro 'ESP_LOGI'
 1561 | #define ESP_LWIP_LOGI(...)              ESP_LOGI("lwip", __VA_ARGS__)
      |                                         ^~~~~~~~
/scratch/esp-idf-v5.2/components/lwip/port/debug/lwip_debug.c:97:5: note: in expansion of macro 'ESP_LWIP_LOGI'
   97 |     ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
      |     ^~~~~~~~~~~~~
cc1: some warnings being treated as errors

Steps to reproduce.

  • Clone esp-idf release/v5.2 branch
  • Ensure LWIP_DEBUG is disabled in sdkconfig
  • Build a project.

Build or installation Logs.

No response

More Information.

I've locally modified lwip_debug.c with the following diff:

diff --git a/components/lwip/port/debug/lwip_debug.c b/components/lwip/port/debug/lwip_debug.c
index dca5b50..0caf070 100644
--- a/components/lwip/port/debug/lwip_debug.c
+++ b/components/lwip/port/debug/lwip_debug.c
@@ -82,7 +82,7 @@ static void dbg_lwip_tcp_pcb_one_show(struct tcp_pcb* pcb)
     ESP_LWIP_LOGI("local_port=%d, remote_port=%d", pcb->local_port, pcb->remote_port);
     ESP_LWIP_LOGI("flags=%x", pcb->flags);
     ESP_LWIP_LOGI("pooltmr=%d pollinterval=%d, last_tmr=%d tmr=%" PRIu32 " rtmer=%d", pcb->polltmr, pcb->pollinterval, pcb->last_timer, pcb->tmr, pcb->rtime);
-    ESP_LWIP_LOGI("recv_nxt=%" PRIu32 " recv_wnd=%d recv_ann_wnd=%d recv_ann_right_edge=%" PRIu32, pcb->rcv_nxt, pcb->rcv_wnd, pcb->rcv_ann_wnd, pcb->rcv_ann_right_edge);
+    ESP_LWIP_LOGI("recv_nxt=%" PRIu32 " recv_wnd=%" PRIu32 " recv_ann_wnd=%" PRIu32 " recv_ann_right_edge=%" PRIu32, pcb->rcv_nxt, pcb->rcv_wnd, pcb->rcv_ann_wnd, pcb->rcv_ann_right_edge);
     ESP_LWIP_LOGI("mss=%d", pcb->mss);
     ESP_LWIP_LOGI("rttest=%" PRIu32 " rtseq=%" PRIu32 " sa=%d sv=%d", pcb->rttest, pcb->rtseq, pcb->sa, pcb->sv);
     ESP_LWIP_LOGI("rto=%d nrtx=%d", pcb->rto, pcb->nrtx);
@@ -90,11 +90,11 @@ static void dbg_lwip_tcp_pcb_one_show(struct tcp_pcb* pcb)
 #if ESP_PER_SOC_TCP_WND
     ESP_LWIP_LOGI("per_soc_window=%d per_soc_snd_buf=%d", pcb->per_soc_tcp_wnd, pcb->per_soc_tcp_snd_buf);
 #endif
-    ESP_LWIP_LOGI("cwnd=%d ssthreash=%d", pcb->cwnd, pcb->ssthresh);
+    ESP_LWIP_LOGI("cwnd=%" PRIu32 " ssthreash=%" PRIu32, pcb->cwnd, pcb->ssthresh);
     ESP_LWIP_LOGI("snd_next=%" PRIu32 " snd_wl1=%" PRIu32 " snd_wl2=%" PRIu32, pcb->snd_nxt, pcb->snd_wl1, pcb->snd_wl2);
-    ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%d snd_wnd_max=%d", pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
+    ESP_LWIP_LOGI("snd_lbb=%" PRIu32 " snd_wnd=%" PRIu32 " snd_wnd_max=%" PRIu32, pcb->snd_lbb, pcb->snd_wnd, pcb->snd_wnd_max);
     //ESP_LWIP_LOGI("acked=%d", pcb->acked);
-    ESP_LWIP_LOGI("snd_buf=%d snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
+    ESP_LWIP_LOGI("snd_buf=%" PRIu32 " snd_queuelen=%d", pcb->snd_buf, pcb->snd_queuelen);
     ESP_LWIP_LOGI("unsent_oversize=%d", pcb->unsent_oversize);
     ESP_LWIP_LOGI("keep_idle=%" PRIu32 " keep_intvl=%" PRIu32 " keep_cnt=%" PRIu32, pcb->keep_idle, pcb->keep_intvl, pcb->keep_cnt);
     ESP_LWIP_LOGI("persist_cnt=%d persist_backoff=%d", pcb->persist_cnt, pcb->persist_backoff);

and now it compiles cleanly.

@atanisoft atanisoft added the Type: Bug bugs in IDF label Jan 15, 2024
@atanisoft
Copy link
Author

This appears to be related to c510560 with some of the data types changing since this was merged.

@atanisoft
Copy link
Author

@david-cermak can you review?

@espressif-bot espressif-bot added the Status: Opened Issue is new label Jan 15, 2024
@github-actions github-actions bot changed the title lwip_debug.c has log format issues resulting in compilation failure lwip_debug.c has log format issues resulting in compilation failure (IDFGH-11897) Jan 15, 2024
@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Jan 16, 2024
@mhdong
Copy link
Collaborator

mhdong commented Jan 16, 2024

Hi @atanisoft
The reason is
#if LWIP_WND_SCALE typedef u32_t tcpwnd_size_t; #else typedef u16_t tcpwnd_size_t; #endif
The patch code you provided is correct. Thank you very much and we will fix it as soon as possible.

@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: In Progress Work is in progress labels Jan 16, 2024
@atanisoft
Copy link
Author

Thanks @mhdong, this will need some special care as with LWIP_WND_SCALE disabled the current code is correct and working. I'm not sure which approach should be used here.

Also if possible, when this is fixed can it be backported to 5.2?

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Reviewing Issue is being reviewed labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants