diff options
author | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-18 19:16:43 +0400 |
---|---|---|
committer | Mitya Selivanov <0x7fffff@guattari.ru> | 2022-08-18 19:16:43 +0400 |
commit | 5fe35115a38c34d82a5892cb9337744d73e4180a (patch) | |
tree | ac94530ee904f22f421af7c8281133bd0af6dc5c /source | |
parent | a06f6ec396abe23cdccf5ed96ebdf2897c4ee3e3 (diff) | |
download | kit-5fe35115a38c34d82a5892cb9337744d73e4180a.zip |
Remove debug printf
Diffstat (limited to 'source')
-rw-r--r-- | source/kit/threads.posix.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 <stdio.h> - /* 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(); |