From 05bca5b2cf5f2ae881e6f5385dcf08a6b17caf49 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 26 Mar 2019 18:23:56 +0100 Subject: [PATCH] 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. --- sys/net/gnrc/netif/gnrc_netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index 672181f16990..404c430a016c 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -1328,7 +1328,7 @@ static void *_gnrc_netif_thread(void *args) DEBUG("gnrc_netif: GNRC_NETDEV_MSG_TYPE_SND received\n"); res = netif->ops->send(netif, msg.content.ptr); 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); } #ifdef MODULE_NETSTATS_L2