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:
parent
41aad42d8f
commit
3db17eedbf
@ -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];
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user