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:
parent
54c1bd92f9
commit
ffcfe9c44f
5 changed files with 19 additions and 4 deletions
|
@ -93,6 +93,13 @@ config NETWORK_IP_STACK_DEBUG_IPV6_ROUTE
|
||||||
help
|
help
|
||||||
Enables IPv6 route code part to output debug messages
|
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
|
config NETWORK_IP_STACK_DEBUG_15_4_6LOWPAN_FRAG
|
||||||
bool "Debug 802.15.4 6LoWPAN fragmentation"
|
bool "Debug 802.15.4 6LoWPAN fragmentation"
|
||||||
depends on NETWORKING_WITH_15_4
|
depends on NETWORKING_WITH_15_4
|
||||||
|
|
|
@ -65,7 +65,9 @@ void uip_log(char *msg);
|
||||||
#define UIP_LOG(m)
|
#define UIP_LOG(m)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEBUG 0
|
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_15_4_MAC
|
||||||
|
#define DEBUG 1
|
||||||
|
#endif
|
||||||
#include "contiki/ip/uip-debug.h"
|
#include "contiki/ip/uip-debug.h"
|
||||||
|
|
||||||
#if UIP_LOGGING
|
#if UIP_LOGGING
|
||||||
|
|
|
@ -48,7 +48,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.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"
|
#include "contiki/ip/uip-debug.h"
|
||||||
|
|
||||||
#define CHANNEL_LOW 11
|
#define CHANNEL_LOW 11
|
||||||
|
|
|
@ -52,7 +52,9 @@
|
||||||
#include "lib/simEnvChange.h"
|
#include "lib/simEnvChange.h"
|
||||||
#endif /* CONTIKI_TARGET_COOJA */
|
#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"
|
#include "contiki/ip/uip-debug.h"
|
||||||
|
|
||||||
#ifdef NULLRDC_CONF_ADDRESS_FILTER
|
#ifdef NULLRDC_CONF_ADDRESS_FILTER
|
||||||
|
|
|
@ -54,7 +54,9 @@
|
||||||
#include "contiki/netstack.h"
|
#include "contiki/netstack.h"
|
||||||
#include "lib/random.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"
|
#include "contiki/ip/uip-debug.h"
|
||||||
|
|
||||||
#if UIP_LOGGING
|
#if UIP_LOGGING
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue