net: Allow user to activate 6lowpan compression debug

User can set CONFIG_NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION
to get debugs from generic 6lowpan fragmentation code.
The generic code is shared between 802.15.4 and Bluetooth
bearers.

Change-Id: Iae6dcebe8fb4269e15bac5dcec2b63e79b4abcd3
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-03-16 11:10:25 +02:00 committed by Gerrit Code Review
commit 54c1bd92f9
2 changed files with 11 additions and 1 deletions

View file

@ -100,6 +100,14 @@ config NETWORK_IP_STACK_DEBUG_15_4_6LOWPAN_FRAG
help
Enables 802.15.4 6LoWPAN fragmentation to output debug messages
config NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION
bool "Debug generic 6LoWPAN compression"
depends on NETWORKING_WITH_IPV6
default n
help
Enables generic (802.15.4 or Bluetooth) 6LoWPAN compression
to output debug messages
config NETWORK_IP_STACK_DEBUG_IPV4
bool "Debug core IPv4"
depends on NETWORKING_WITH_IPV4

View file

@ -73,7 +73,9 @@
#include "dev/watchdog.h"
#include "contiki/ipv6/uip-ds6.h"
#define DEBUG 0
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
#if DEBUG
/* PRINTFI and PRINTFO are defined for input and output to debug one without changing the timing of the other */