diff --git a/net/ip/Kconfig.debug b/net/ip/Kconfig.debug index f8332b0f385..8df0466c4b4 100644 --- a/net/ip/Kconfig.debug +++ b/net/ip/Kconfig.debug @@ -129,6 +129,13 @@ config NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION Enables generic (802.15.4 or Bluetooth) 6LoWPAN compression to output debug messages +config NETWORK_IP_STACK_DEBUG_PACKET_QUEUE + bool "Debug uip packet queue" + depends on NETWORKING_WITH_IPV6 + default n + help + Enables uip packet queue output debug messages + config NETWORK_IP_STACK_DEBUG_RPL bool "Debug RPL messages" depends on NETWORKING_WITH_RPL diff --git a/net/ip/contiki/ip/uip-packetqueue.c b/net/ip/contiki/ip/uip-packetqueue.c index 7cd0647166a..900f138b918 100644 --- a/net/ip/contiki/ip/uip-packetqueue.c +++ b/net/ip/contiki/ip/uip-packetqueue.c @@ -9,7 +9,10 @@ #define MAX_NUM_QUEUED_PACKETS 2 MEMB(packets_memb, struct uip_packetqueue_packet, MAX_NUM_QUEUED_PACKETS); -#define DEBUG DEBUG_NONE +#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_PACKET_QUEUE +#define DEBUG 1 +#endif + #include "contiki/ip/uip-debug.h" /*---------------------------------------------------------------------------*/