drivers: ethernet: litex: add length to log

log the length, if obtaining a rx buffer fails.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2025-05-12 11:59:58 +02:00 committed by Benjamin Cabé
commit 003aa520d0

View file

@ -139,7 +139,7 @@ static void eth_rx(const struct device *port)
pkt = net_pkt_rx_alloc_with_buffer(context->iface, len, AF_UNSPEC, 0,
K_NO_WAIT);
if (pkt == NULL) {
LOG_ERR("Failed to obtain RX buffer");
LOG_ERR("Failed to obtain RX buffer of length %u", len);
return;
}