summary refs log tree commit diff
path: root/nptl/tst-rwlock7.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-04-30 20:51:59 +0000
committerUlrich Drepper <drepper@redhat.com>2003-04-30 20:51:59 +0000
commit1472a752283333592fc0819f61a3b39cac738451 (patch)
tree10f42fb2fd8b7d390fc2e0163020a5cc9d23daf0 /nptl/tst-rwlock7.c
parentf545f1df008ada6ac888cb2013131888c8d7eefa (diff)
downloadglibc-1472a752283333592fc0819f61a3b39cac738451.tar.gz
glibc-1472a752283333592fc0819f61a3b39cac738451.tar.xz
glibc-1472a752283333592fc0819f61a3b39cac738451.zip
(do_test): Use correct printf format specifiers.
Diffstat (limited to 'nptl/tst-rwlock7.c')
-rw-r--r--nptl/tst-rwlock7.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nptl/tst-rwlock7.c b/nptl/tst-rwlock7.c
index 2045aa2cb2..6dd8fef5a7 100644
--- a/nptl/tst-rwlock7.c
+++ b/nptl/tst-rwlock7.c
@@ -109,25 +109,25 @@ do_test (void)
 
       if (pthread_rwlockattr_init (&a) != 0)
 	{
-	  printf ("round %d: rwlockattr_t failed\n", cnt);
+	  printf ("round %Zu: rwlockattr_t failed\n", cnt);
 	  exit (1);
 	}
 
       if (pthread_rwlockattr_setkind_np (&a, kind[cnt]) != 0)
 	{
-	  printf ("round %d: rwlockattr_setkind failed\n", cnt);
+	  printf ("round %Zu: rwlockattr_setkind failed\n", cnt);
 	  exit (1);
 	}
 
       if (pthread_rwlock_init (&r, &a) != 0)
 	{
-	  printf ("round %d: rwlock_init failed\n", cnt);
+	  printf ("round %Zu: rwlock_init failed\n", cnt);
 	  exit (1);
 	}
 
       if (pthread_rwlockattr_destroy (&a) != 0)
 	{
-	  printf ("round %d: rwlockattr_destroy failed\n", cnt);
+	  printf ("round %Zu: rwlockattr_destroy failed\n", cnt);
 	  exit (1);
 	}
 
@@ -142,21 +142,21 @@ do_test (void)
       /* Get a read lock.  */
       if (pthread_rwlock_timedrdlock (&r, &ts) != 0)
 	{
-	  printf ("round %d: rwlock_timedrdlock failed\n", cnt);
+	  printf ("round %Zu: rwlock_timedrdlock failed\n", cnt);
 	  exit (1);
 	}
 
       pthread_t th;
       if (pthread_create (&th, NULL, tf, &r) != 0)
 	{
-	  printf ("round %d: create failed\n", cnt);
+	  printf ("round %Zu: create failed\n", cnt);
 	  exit (1);
 	}
 
       void *status;
       if (pthread_join (th, &status) != 0)
 	{
-	  printf ("round %d: join failed\n", cnt);
+	  printf ("round %Zu: join failed\n", cnt);
 	  exit (1);
 	}
       if (status != NULL)
@@ -167,7 +167,7 @@ do_test (void)
 
       if (pthread_rwlock_destroy (&r) != 0)
 	{
-	  printf ("round %d: rwlock_destroy failed\n", cnt);
+	  printf ("round %Zu: rwlock_destroy failed\n", cnt);
 	  exit (1);
 	}
     }