net: Kconfig debug option for debugging received and sent data

User can activate debugging in network stack when packets are
received and sent by setting CONFIG_NETWORK_IP_STACK_DEBUG_RECV_SEND
option in config file.

Change-Id: I7b45b6f9053664a03aa7dde79e7000b6063ac822
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-03-16 09:11:05 +02:00 committed by Gerrit Code Review
commit 7d805482c3
2 changed files with 9 additions and 1 deletions

View file

@ -45,6 +45,12 @@ config NETWORK_IP_STACK_DEBUG_NET_BUF
help
Enables printing of network buffer allocations and frees.
config NETWORK_IP_STACK_DEBUG_RECV_SEND
bool "Debug network generic receive and send functions"
default n
help
Enables generic debug printing when receiving and sending data.
config NETWORK_IP_STACK_DEBUG_IPV6
bool "Debug core IPv6"
depends on NETWORKING_WITH_IPV6

View file

@ -51,7 +51,9 @@
#include <string.h>
#define DEBUG DEBUG_NONE
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_RECV_SEND
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
#if UIP_LOGGING