1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ng_net: use printf-stack size where it is needed

This commit is contained in:
Martine Lenders 2015-05-27 12:05:06 +02:00
parent 41aad42d8f
commit 3db17eedbf
3 changed files with 14 additions and 0 deletions

View File

@ -35,7 +35,11 @@
#define _MAX_L2_ADDR_LEN (8U)
#if ENABLE_DEBUG
static char _stack[NG_IPV6_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
#else
static char _stack[NG_IPV6_STACK_SIZE];
#endif
#if ENABLE_DEBUG
static char addr_str[NG_IPV6_ADDR_MAX_STR_LEN];

View File

@ -25,7 +25,13 @@
#include "debug.h"
static kernel_pid_t _pid = KERNEL_PID_UNDEF;
#if ENABLE_DEBUG
static char _stack[NG_SIXLOWPAN_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
#else
static char _stack[NG_SIXLOWPAN_STACK_SIZE];
#endif
/* handles NG_NETAPI_MSG_TYPE_RCV commands */
void _receive(ng_pktsnip_t *pkt);

View File

@ -44,7 +44,11 @@ static kernel_pid_t _pid = KERNEL_PID_UNDEF;
/**
* @brief Allocate memory for the UDP thread's stack
*/
#if ENABLE_DEBUG
static char _stack[NG_UDP_STACK_SIZE + THREAD_EXTRA_STACKSIZE_PRINTF];
#else
static char _stack[NG_UDP_STACK_SIZE];
#endif
/**
* @brief Calculate the UDP checksum dependent on the network protocol