From 6f0cc916c6f5aa98dab01be6b32d806d03976d4d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 23 Apr 2024 13:09:35 +0200 Subject: [PATCH] typo --- src/sched-random.c | 2 +- src/sched-stack.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sched-random.c b/src/sched-random.c index b30ec68..46994ea 100644 --- a/src/sched-random.c +++ b/src/sched-random.c @@ -79,7 +79,7 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure) pthread_t threads[nthreads]; for(int i = 0; i < nthreads; ++i) { if(pthread_create(&threads[i], NULL, sched_worker, &sched) != 0) { - fprintf(stderr, "Can't create the thread %d\n", i); + fprintf(stderr, "Can't create the thread %d", i); if(i > 0) { fprintf(stderr, ", cancelling already created threads...\n"); diff --git a/src/sched-stack.c b/src/sched-stack.c index 614d6cb..2940477 100644 --- a/src/sched-stack.c +++ b/src/sched-stack.c @@ -76,7 +76,7 @@ sched_init(int nthreads, int qlen, taskfunc f, void *closure) pthread_t threads[nthreads]; for(int i = 0; i < nthreads; ++i) { if(pthread_create(&threads[i], NULL, sched_worker, &sched) != 0) { - fprintf(stderr, "Can't create the thread %d\n", i); + fprintf(stderr, "Can't create the thread %d", i); if(i > 0) { fprintf(stderr, ", cancelling already created threads...\n");