diff --git a/core/include/thread.h b/core/include/thread.h index cc414c9fb7..57a8dbacd6 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -640,8 +640,8 @@ static inline const char *thread_get_name(const thread_t *thread) /** * @brief Measures the stack usage of a stack * - * @pre Only works if the thread was created with the flag - * `THREAD_CREATE_STACKTEST`. + * @pre Does not work if the thread was created with the flag + * `THREAD_CREATE_NO_STACKTEST`. * * @param[in] thread The thread to measure the stack of * diff --git a/sys/net/application_layer/gcoap/forward_proxy_thread.c b/sys/net/application_layer/gcoap/forward_proxy_thread.c index b3e725c8fc..5d512f7233 100644 --- a/sys/net/application_layer/gcoap/forward_proxy_thread.c +++ b/sys/net/application_layer/gcoap/forward_proxy_thread.c @@ -57,7 +57,7 @@ static void *_forward_proxy_thread_start(void *arg) void gcoap_forward_proxy_thread_init(void) { forward_proxy_pid = thread_create(_forward_proxy_thread, sizeof(_forward_proxy_thread), - THREAD_PRIORITY_MAIN - 1, THREAD_CREATE_STACKTEST, + THREAD_PRIORITY_MAIN - 1, 0, _forward_proxy_thread_start, NULL, "gcoap proxy"); if (forward_proxy_pid <= KERNEL_PID_UNDEF) { DEBUG_PUTS("gcoap_forward_proxy_thread_init(): thread_create failed\n"); diff --git a/tests/sys/shell/main.c b/tests/sys/shell/main.c index 146ab4d7ae..8fa8fb3e6f 100644 --- a/tests/sys/shell/main.c +++ b/tests/sys/shell/main.c @@ -130,7 +130,7 @@ static int print_periodic(int argc, char **argv) _periodic_ctx.period_ms = 500; - thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN, THREAD_CREATE_STACKTEST, + thread_create(_stack, sizeof(_stack), THREAD_PRIORITY_MAIN, 0, _func, NULL, "periodic"); return 0;