Skip to content

Commit 003aa52

Browse files
maass-hamburgkartben
authored andcommitted
drivers: ethernet: litex: add length to log
log the length, if obtaining a rx buffer fails. Signed-off-by: Fin Maaß <[email protected]>
1 parent bab50a5 commit 003aa52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/eth_litex_liteeth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static void eth_rx(const struct device *port)
139139
pkt = net_pkt_rx_alloc_with_buffer(context->iface, len, AF_UNSPEC, 0,
140140
K_NO_WAIT);
141141
if (pkt == NULL) {
142-
LOG_ERR("Failed to obtain RX buffer");
142+
LOG_ERR("Failed to obtain RX buffer of length %u", len);
143143
return;
144144
}
145145

0 commit comments

Comments
 (0)