From 0588b3ceedab7fbf1aa70507db04eb3876f0b0d6 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Thu, 17 Mar 2016 16:00:44 +0200 Subject: [PATCH] net: contiki: Enable uip packet queue debugging via Kconfig User can activate packet queue debugging by setting CONFIG_NETWORK_IP_STACK_DEBUG_PACKET_QUEUE config option. Change-Id: I70ea0b48b3c120e085a8b342981fc7a9028d45b1 Signed-off-by: Ravi kumar Veeramally --- net/ip/Kconfig.debug | 7 +++++++ net/ip/contiki/ip/uip-packetqueue.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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" /*---------------------------------------------------------------------------*/