From 492ff73de699a40d9eec22b9afe631061b8baef0 Mon Sep 17 00:00:00 2001 From: Andrew Goodbody Date: Fri, 5 Dec 2025 09:46:48 +0000 Subject: [PATCH] net:lwip: Add debug line to net-lwip When debugging the LWIP NFS implementation this debug line helped to show the cause of an error. This could be useful to someone in the future. Signed-off-by: Andrew Goodbody Reviewed-by: Jerome Forissier --- net/lwip/net-lwip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/lwip/net-lwip.c b/net/lwip/net-lwip.c index 8741f65fe12..f70857204b2 100644 --- a/net/lwip/net-lwip.c +++ b/net/lwip/net-lwip.c @@ -297,6 +297,7 @@ static struct pbuf *alloc_pbuf_and_copy(uchar *data, int len) /* We allocate a pbuf chain of pbufs from the pool. */ p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL); if (!p) { + debug("Failed to allocate pbuf !!!!!\n"); LINK_STATS_INC(link.memerr); LINK_STATS_INC(link.drop); return NULL;