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");