From 005388712be1c2c341769b41ffe590711609e951 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 20 Sep 2017 01:08:04 +0300 Subject: [PATCH] Fix missing new-line at format strings end in subthread_create test * tests/subthread_create.c [GC_PTHREADS] (entry, main): Append "\n" to fprintf() format string (where missing). --- tests/subthread_create.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/subthread_create.c b/tests/subthread_create.c index cfbea8e..6fd889e 100644 --- a/tests/subthread_create.c +++ b/tests/subthread_create.c @@ -61,7 +61,7 @@ volatile AO_t thread_ended_cnt = 0; pthread_t th; err = pthread_create(&th, NULL, entry, (void *)my_depth); if (err) { - fprintf(stderr, "Thread #%d creation failed: %s", thread_num, + fprintf(stderr, "Thread #%d creation failed: %s\n", thread_num, strerror(err)); exit(2); } @@ -97,7 +97,7 @@ int main(void) # ifdef GC_PTHREADS err = pthread_create(&th[i], NULL, entry, 0); if (err) { - fprintf(stderr, "Thread creation failed: %s", strerror(err)); + fprintf(stderr, "Thread creation failed: %s\n", strerror(err)); exit(1); } # else @@ -116,7 +116,7 @@ int main(void) void *res; err = pthread_join(th[i], &res); if (err) { - fprintf(stderr, "Failed to join thread: %s", strerror(err)); + fprintf(stderr, "Failed to join thread: %s\n", strerror(err)); exit(1); } # else -- 2.7.4