net: rpl: Enable objective function debugging via Kconfig
User can activate RPL OF debugging by setting CONFIG_NETWORK_IP_STACK_DEBUG_RPL_OF config option. Change-Id: I9c7b59eb6d782702b5a9159f4915d3f58f732d5c Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
079be6caf2
commit
d19f08f104
3 changed files with 13 additions and 2 deletions
|
@ -143,6 +143,13 @@ config NETWORK_IP_STACK_DEBUG_RPL_ICMPV6
|
||||||
help
|
help
|
||||||
Enables RPL ICMPv6 debug messages
|
Enables RPL ICMPv6 debug messages
|
||||||
|
|
||||||
|
config NETWORK_IP_STACK_DEBUG_RPL_OF
|
||||||
|
bool "Debug RPL objective function messages"
|
||||||
|
depends on NETWORKING_WITH_RPL
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enables RPL Objective Function related debug messages
|
||||||
|
|
||||||
config NETWORK_IP_STACK_DEBUG_IPV4
|
config NETWORK_IP_STACK_DEBUG_IPV4
|
||||||
bool "Debug core IPv4"
|
bool "Debug core IPv4"
|
||||||
depends on NETWORKING_WITH_IPV4
|
depends on NETWORKING_WITH_IPV4
|
||||||
|
|
|
@ -49,7 +49,9 @@
|
||||||
#include "contiki/rpl/rpl-private.h"
|
#include "contiki/rpl/rpl-private.h"
|
||||||
#include "contiki/nbr-table.h"
|
#include "contiki/nbr-table.h"
|
||||||
|
|
||||||
#define DEBUG DEBUG_NONE
|
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_RPL_OF
|
||||||
|
#define DEBUG 1
|
||||||
|
#endif
|
||||||
#include "contiki/ip/uip-debug.h"
|
#include "contiki/ip/uip-debug.h"
|
||||||
|
|
||||||
static void reset(rpl_dag_t *);
|
static void reset(rpl_dag_t *);
|
||||||
|
|
|
@ -43,7 +43,9 @@
|
||||||
|
|
||||||
#include "contiki/rpl/rpl-private.h"
|
#include "contiki/rpl/rpl-private.h"
|
||||||
|
|
||||||
#define DEBUG DEBUG_NONE
|
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_RPL_OF
|
||||||
|
#define DEBUG 1
|
||||||
|
#endif
|
||||||
#include "contiki/ip/uip-debug.h"
|
#include "contiki/ip/uip-debug.h"
|
||||||
|
|
||||||
static void reset(rpl_dag_t *);
|
static void reset(rpl_dag_t *);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue