gnrc_netif: fix DEBUG output on error
`res` is an integer that is always negative in the given case, so using `%u` here might be a little bit confusing.
This commit is contained in:
parent
116642f1de
commit
05bca5b2cf
@ -1328,7 +1328,7 @@ static void *_gnrc_netif_thread(void *args)
|
|||||||
DEBUG("gnrc_netif: GNRC_NETDEV_MSG_TYPE_SND received\n");
|
DEBUG("gnrc_netif: GNRC_NETDEV_MSG_TYPE_SND received\n");
|
||||||
res = netif->ops->send(netif, msg.content.ptr);
|
res = netif->ops->send(netif, msg.content.ptr);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
DEBUG("gnrc_netif: error sending packet %p (code: %u)\n",
|
DEBUG("gnrc_netif: error sending packet %p (code: %i)\n",
|
||||||
msg.content.ptr, res);
|
msg.content.ptr, res);
|
||||||
}
|
}
|
||||||
#ifdef MODULE_NETSTATS_L2
|
#ifdef MODULE_NETSTATS_L2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user