From: Andrew Goodbody Date: Fri, 5 Dec 2025 09:46:48 +0000 (+0000) Subject: net:lwip: Add debug line to net-lwip X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=492ff73de699a40d9eec22b9afe631061b8baef0;p=thirdparty%2Fu-boot.git 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 --- 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;