net: contiki: Enable uip packet queue debugging via Kconfig
User can activate packet queue debugging by setting CONFIG_NETWORK_IP_STACK_DEBUG_PACKET_QUEUE config option. Change-Id: I70ea0b48b3c120e085a8b342981fc7a9028d45b1 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
98ff441e53
commit
0588b3ceed
2 changed files with 11 additions and 1 deletions
|
@ -129,6 +129,13 @@ config NETWORK_IP_STACK_DEBUG_6LOWPAN_COMPRESSION
|
|||
Enables generic (802.15.4 or Bluetooth) 6LoWPAN compression
|
||||
to output debug messages
|
||||
|
||||
config NETWORK_IP_STACK_DEBUG_PACKET_QUEUE
|
||||
bool "Debug uip packet queue"
|
||||
depends on NETWORKING_WITH_IPV6
|
||||
default n
|
||||
help
|
||||
Enables uip packet queue output debug messages
|
||||
|
||||
config NETWORK_IP_STACK_DEBUG_RPL
|
||||
bool "Debug RPL messages"
|
||||
depends on NETWORKING_WITH_RPL
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
#define MAX_NUM_QUEUED_PACKETS 2
|
||||
MEMB(packets_memb, struct uip_packetqueue_packet, MAX_NUM_QUEUED_PACKETS);
|
||||
|
||||
#define DEBUG DEBUG_NONE
|
||||
#ifdef CONFIG_NETWORK_IP_STACK_DEBUG_PACKET_QUEUE
|
||||
#define DEBUG 1
|
||||
#endif
|
||||
|
||||
#include "contiki/ip/uip-debug.h"
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue