Skip to content

Commit 432b1b5

Browse files
committed
pkg/lwip: improve debug output with tiny_strerror
1 parent 1438aac commit 432b1b5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkg/lwip/contrib/netdev/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
MODULE := lwip_netdev
22

3+
USEMODULE += tiny_strerror
4+
35
include $(RIOTBASE)/Makefile.base

pkg/lwip/contrib/netdev/lwip_netdev.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "netif/lowpan6.h"
3838
#include "thread.h"
3939
#include "thread_flags.h"
40+
#include "tiny_strerror.h"
4041
#include "utlist.h"
4142

4243
#define ENABLE_DEBUG 0
@@ -295,6 +296,7 @@ static err_t _common_link_output(struct netif *netif, netdev_t *netdev, iolist_t
295296
irq_state = irq_disable();
296297
compat_netif->thread_doing_tx = NULL;
297298
irq_restore(irq_state);
299+
DEBUG("[lwip_netdev] send() returned %s\n", tiny_strerror(res));
298300
return ERR_IF;
299301
}
300302

@@ -320,6 +322,7 @@ static err_t _common_link_output(struct netif *netif, netdev_t *netdev, iolist_t
320322
lwip_netif_dev_release(netif);
321323

322324
if (res < 0) {
325+
DEBUG("[lwip_netdev] confirm_send() returned %s\n", tiny_strerror(res));
323326
return ERR_IF;
324327
}
325328

0 commit comments

Comments
 (0)