diff --git a/esphome/components/esp32/__init__.py b/esphome/components/esp32/__init__.py index 54cba78ae2..f15acfe4a9 100644 --- a/esphome/components/esp32/__init__.py +++ b/esphome/components/esp32/__init__.py @@ -1307,11 +1307,13 @@ def _configure_lwip_max_sockets(conf: dict) -> None: max_sockets = max(DEFAULT_MAX_SOCKETS, total_sockets) log_level = logging.INFO if max_sockets > DEFAULT_MAX_SOCKETS else logging.DEBUG + sock_min = " (min)" if max_sockets > total_sockets else "" _LOGGER.log( log_level, - "Setting CONFIG_LWIP_MAX_SOCKETS to %d " + "Setting CONFIG_LWIP_MAX_SOCKETS to %d%s " "(TCP=%d [%s], UDP=%d [%s], TCP_LISTEN=%d [%s])", max_sockets, + sock_min, tcp_sockets, tcp_details, udp_sockets, diff --git a/esphome/components/libretiny/__init__.py b/esphome/components/libretiny/__init__.py index e36c261877..6b6b1abe1c 100644 --- a/esphome/components/libretiny/__init__.py +++ b/esphome/components/libretiny/__init__.py @@ -398,13 +398,19 @@ def _configure_lwip(config: dict) -> None: if CORE.is_bk72xx: lwip_opts.append("PBUF_POOL_SIZE=10") + tcp_min = " (min)" if tcp_sockets > raw_tcp else "" + udp_min = " (min)" if udp_sockets > raw_udp else "" + listen_min = " (min)" if listening_tcp > raw_tcp_listen else "" _LOGGER.info( - "Configuring lwIP: TCP=%d [%s], UDP=%d [%s], TCP_LISTEN=%d [%s]", + "Configuring lwIP: TCP=%d%s [%s], UDP=%d%s [%s], TCP_LISTEN=%d%s [%s]", tcp_sockets, + tcp_min, tcp_details, udp_sockets, + udp_min, udp_details, listening_tcp, + listen_min, tcp_listen_details, ) cg.add_platformio_option("custom_options.lwip", lwip_opts)