net: Allow user to activate 802.15.4 MAC layer debugging

User can set CONFIG_NETWORK_IP_STACK_DEBUG_15_4_MAC
to get debugs from 802.15.4 MAC layer code.

Change-Id: Ie385c586caad1602869260146a1ea92d961b73c3
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-03-16 11:25:12 +02:00
parent 54c1bd92f9
commit ffcfe9c44f
5 changed files with 19 additions and 4 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_MAC
bool "Debug 802.15.4 MAC layer"
depends on NETWORKING_WITH_15_4
default n
help
Enables 802.15.4 MAC layer 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

View file

@ -65,7 +65,9 @@ void uip_log(char *msg);
#define UIP_LOG(m)
#endif
#define DEBUG 0
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_15_4_MAC
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
#if UIP_LOGGING

View file

@ -48,7 +48,9 @@
#include <string.h>
#include <stdio.h>
#define DEBUG DEBUG_NONE
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_15_4_MAC
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
#define CHANNEL_LOW 11

View file

@ -52,7 +52,9 @@
#include "lib/simEnvChange.h"
#endif /* CONTIKI_TARGET_COOJA */
#define DEBUG DEBUG_NONE
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_15_4_MAC
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
#ifdef NULLRDC_CONF_ADDRESS_FILTER

View file

@ -54,7 +54,9 @@
#include "contiki/netstack.h"
#include "lib/random.h"
#define DEBUG 0
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_15_4_MAC
#define DEBUG 1
#endif
#include "contiki/ip/uip-debug.h"
#if UIP_LOGGING