net: rpl: Enable timer debugging via Kconfig

User can activate RPL timer debugging by setting
CONFIG_NETWORK_IP_STACK_DEBUG_RPL_TIMERS config option.

Change-Id: I66079640e4135a0f85620cc4eca04612eee1a890
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-03-16 17:11:32 +02:00
commit 9641a0fed0
2 changed files with 10 additions and 1 deletions

View file

@ -150,6 +150,13 @@ config NETWORK_IP_STACK_DEBUG_RPL_OF
help
Enables RPL Objective Function related debug messages
config NETWORK_IP_STACK_DEBUG_RPL_TIMERS
bool "Debug RPL timer functionality"
depends on NETWORKING_WITH_RPL
default n
help
Enables RPL timers related debug messages
config NETWORK_IP_STACK_DEBUG_IPV4
bool "Debug core IPv4"
depends on NETWORKING_WITH_IPV4

View file

@ -47,7 +47,9 @@
#include "lib/random.h"
#include "sys/ctimer.h"
#define DEBUG DEBUG_NONE
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_RPL_TIMERS
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
/*---------------------------------------------------------------------------*/