Richard W.M. Jones
2012-Feb-15 19:27 UTC
[Libguestfs] [PATCH] test-user-cancel: Add \n to fprintf error messages.
From: "Richard W.M. Jones" <rjones at redhat.com> --- tests/c-api/test-user-cancel.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c index 0cc049a..4908f95 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -143,7 +143,7 @@ main (int argc, char *argv[]) /* Create the test thread. */ r = pthread_create (&test_thread, NULL, start_test_thread, &data); if (r != 0) { - fprintf (stderr, "pthread_create: %s", strerror (r)); + fprintf (stderr, "pthread_create: %s\n", strerror (r)); exit (EXIT_FAILURE); } @@ -154,12 +154,12 @@ main (int argc, char *argv[]) /* Kill the test thread and clean up. */ r = pthread_cancel (test_thread); if (r != 0) { - fprintf (stderr, "pthread_cancel: %s", strerror (r)); + fprintf (stderr, "pthread_cancel: %s\n", strerror (r)); exit (EXIT_FAILURE); } r = pthread_join (test_thread, NULL); if (r != 0) { - fprintf (stderr, "pthread_join: %s", strerror (r)); + fprintf (stderr, "pthread_join: %s\n", strerror (r)); exit (EXIT_FAILURE); } @@ -204,7 +204,7 @@ main (int argc, char *argv[]) /* Create the test thread. */ r = pthread_create (&test_thread, NULL, start_test_thread, &data); if (r != 0) { - fprintf (stderr, "pthread_create: %s", strerror (r)); + fprintf (stderr, "pthread_create: %s\n", strerror (r)); exit (EXIT_FAILURE); } @@ -215,12 +215,12 @@ main (int argc, char *argv[]) /* Kill the test thread and clean up. */ r = pthread_cancel (test_thread); if (r != 0) { - fprintf (stderr, "pthread_cancel: %s", strerror (r)); + fprintf (stderr, "pthread_cancel: %s\n", strerror (r)); exit (EXIT_FAILURE); } r = pthread_join (test_thread, NULL); if (r != 0) { - fprintf (stderr, "pthread_join: %s", strerror (r)); + fprintf (stderr, "pthread_join: %s\n", strerror (r)); exit (EXIT_FAILURE); } -- 1.7.9