diff --git a/subsys/net/ip/tcp.c b/subsys/net/ip/tcp.c index c288c72e55a..4df6ef5fcaf 100644 --- a/subsys/net/ip/tcp.c +++ b/subsys/net/ip/tcp.c @@ -62,7 +62,7 @@ struct tcp_segment { const struct sockaddr *dst_addr; }; -#if defined(CONFIG_NET_DEBUG_TCP) +#if defined(CONFIG_NET_DEBUG_TCP) && (CONFIG_SYS_LOG_NET_BUF_LEVEL > 2) static char upper_if_set(char chr, bool set) { if (set) {