net/udp: fix build error when NET_UDP_WRITE_BUFFERS disable

fix build error.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2025-04-29 21:27:28 +08:00
committed by Xiang Xiao
parent 8d7ce77247
commit 150e52769b
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -95,13 +95,13 @@ static ssize_t netprocfs_udpstats(FAR struct netprocfs_file_s *priv,
len += snprintf(buffer + len, buflen - len,
" %2" PRIu8
": %3" PRIx8
#if CONFIG_NET_SEND_BUFSIZE > 0
#ifdef CONFIG_NET_UDP_WRITE_BUFFERS
" %6" PRIu32
#endif
" %6u",
priv->offset++,
conn->sconn.s_flags,
#if CONFIG_NET_SEND_BUFSIZE > 0
#ifdef CONFIG_NET_UDP_WRITE_BUFFERS
udp_wrbuffer_inqueue_size(conn),
#endif
(conn->readahead) ? conn->readahead->io_pktlen : 0);