net: Allow user to activate 802.15.4 6lowpan frag debug

User can set CONFIG_NETWORK_IP_STACK_DEBUG_15_4_6LOWPAN_FRAG
to get debugs from 802.15.4 6lowpan fragmentation code.

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

View file

@ -93,6 +93,13 @@ config NETWORK_IP_STACK_DEBUG_IPV6_ROUTE
help
Enables IPv6 route code part to output debug messages
config NETWORK_IP_STACK_DEBUG_15_4_6LOWPAN_FRAG
bool "Debug 802.15.4 6LoWPAN fragmentation"
depends on NETWORKING_WITH_15_4
default n
help
Enables 802.15.4 6LoWPAN fragmentation to output debug messages
config NETWORK_IP_STACK_DEBUG_IPV4
bool "Debug core IPv4"
depends on NETWORKING_WITH_IPV4

View file

@ -76,7 +76,9 @@
#include "contiki/ipv6/uip-ds6-nbr.h"
#define DEBUG 0
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_15_4_6LOWPAN_FRAG
#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 */