From: Ivan Maidanski Date: Tue, 19 Sep 2017 22:08:04 +0000 (+0300) Subject: Fix missing new-line at format strings end in subthread_create test X-Git-Tag: v7.6.2~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7f7b3ea3a006943907c1999781d82f83bdcabda;p=gc 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). --- diff --git a/tests/subthread_create.c b/tests/subthread_create.c index fb1a728d..46021b23 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