From 5fe35115a38c34d82a5892cb9337744d73e4180a Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Thu, 18 Aug 2022 19:16:43 +0400 Subject: Remove debug printf --- source/kit/threads.posix.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source') diff --git a/source/kit/threads.posix.c b/source/kit/threads.posix.c index 2dea666..c9a9094 100644 --- a/source/kit/threads.posix.c +++ b/source/kit/threads.posix.c @@ -43,8 +43,6 @@ # include "allocator.h" # include "threads.h" -# include - /* Configuration macro: @@ -249,12 +247,8 @@ int thrd_create_with_stack(thrd_t *thr, thrd_start_t func, void *arg, page_size - delta; if (pthread_attr_init(&attr) != 0) return thrd_nomem; - if (pthread_attr_setstacksize(&attr, (size_t) stack_size) != 0) { - printf("pthread_attr_setstacksize failed.\n"); - printf(" page size %d\n", (int) page_size); - printf(" stack size %d\n", (int) stack_size); + if (pthread_attr_setstacksize(&attr, (size_t) stack_size) != 0) return thrd_wrong_stack_size; - } attr_p = &attr; } kit_allocator_t alloc = kit_alloc_default(); -- cgit v1.2.3