From 003aa520d0019e334e58cf32b3717a58ee856794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Mon, 12 May 2025 11:59:58 +0200 Subject: [PATCH] drivers: ethernet: litex: add length to log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit log the length, if obtaining a rx buffer fails. Signed-off-by: Fin Maaß --- drivers/ethernet/eth_litex_liteeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ethernet/eth_litex_liteeth.c b/drivers/ethernet/eth_litex_liteeth.c index 2eb8cbef255..97cb73599d5 100644 --- a/drivers/ethernet/eth_litex_liteeth.c +++ b/drivers/ethernet/eth_litex_liteeth.c @@ -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; }