Skip to content

Commit

Permalink
gnrc_netif: use different error messages for can't queue packet
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Nov 22, 2024
1 parent a379658 commit 2a6b8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/net/gnrc/netif/gnrc_netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1807,7 +1807,7 @@ static void _tx_done(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt,
return; /* early return to not release */
}
else {
LOG_ERROR("gnrc_netif: can't queue packet for sending\n");
LOG_ERROR("gnrc_netif: can't queue packet for sending, drop it\n");
/* If we got here, it means the device was busy and the pkt queue
* was full. The packet should be dropped here anyway */
gnrc_pktbuf_release_error(pkt, ENOMEM);
Expand Down Expand Up @@ -1880,7 +1880,7 @@ static void _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, bool push_back)
return;
}
else {
LOG_WARNING("gnrc_netif: can't queue packet for sending\n");
LOG_WARNING("gnrc_netif: can't queue packet for sending, try sending\n");
/* try to send anyway */
}
}
Expand Down

0 comments on commit 2a6b8a3

Please sign in to comment.