]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net:lwip: Add debug line to net-lwip
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 5 Dec 2025 09:46:48 +0000 (09:46 +0000)
committerJerome Forissier <jerome.forissier@arm.com>
Thu, 15 Jan 2026 10:09:28 +0000 (11:09 +0100)
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 <andrew.goodbody@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
net/lwip/net-lwip.c

index 8741f65fe12e23cc30068506453a762533f8a67f..f70857204b2808139ac3ccacd89d5719b7db12d2 100644 (file)
@@ -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;