Skip to content

Commit 1caae60

Browse files
authored
Merge pull request #22293 from benpicco/gnrc_netif_pktq-error
gnrc_netif_pktq: include interface number in error message
2 parents a088757 + 1fd974e commit 1caae60

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sys/net/gnrc/netif/gnrc_netif.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,8 @@ static void _tx_done(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt,
18751875
return; /* early return to not release */
18761876
}
18771877
else {
1878-
LOG_ERROR("gnrc_netif: can't queue packet for sending, drop it\n");
1878+
LOG_ERROR("gnrc_netif: iface %u queue pkt failed (cannot send), dropped\n",
1879+
netif->pid);
18791880
/* If we got here, it means the device was busy and the pkt queue
18801881
* was full. The packet should be dropped here anyway */
18811882
gnrc_pktbuf_release_error(pkt, ENOMEM);
@@ -1948,7 +1949,7 @@ static void _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, bool push_back)
19481949
return;
19491950
}
19501951
else {
1951-
LOG_WARNING("gnrc_netif: can't queue packet for sending, try sending\n");
1952+
LOG_WARNING("gnrc_netif: iface %u queue pkt failed, try send\n", netif->pid);
19521953
/* try to send anyway */
19531954
}
19541955
}

0 commit comments

Comments
 (0)