[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libguestfs
Subject:    [Libguestfs] [PATCH] test-user-cancel: Add \n to fprintf error messages.
From:       "Richard W.M. Jones" <rjones () redhat ! com>
Date:       2012-02-15 19:27:53
Message-ID: 1329334073-11814-1-git-send-email-rjones () redhat ! com
[Download RAW message or body]

From: "Richard W.M. Jones" <rjones@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic