summaryrefslogtreecommitdiff
path: root/nptl/tst-cancel4.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-04-16 21:59:32 +0000
committerJakub Jelinek <jakub@redhat.com>2003-04-16 21:59:32 +0000
commitf7016882e9a97e573eb3c942c5f9042877981440 (patch)
treea7064ec36edf8af98fea30a8bc1c7d1a95333b60 /nptl/tst-cancel4.c
parent1dd42dfc7264e090654660b96582d3fc417c2574 (diff)
(do_test): Use %zd instead of %d when printing cnt.
Diffstat (limited to 'nptl/tst-cancel4.c')
-rw-r--r--nptl/tst-cancel4.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c
index 08ab3291f5..6fb447715c 100644
--- a/nptl/tst-cancel4.c
+++ b/nptl/tst-cancel4.c
@@ -412,7 +412,7 @@ do_test (void)
pthread_t th;
if (pthread_create (&th, NULL, tests[cnt].tf, NULL) != 0)
{
- printf ("create for round %d test failed\n", cnt);
+ printf ("create for round %zd test failed\n", cnt);
exit (1);
}
@@ -429,22 +429,22 @@ do_test (void)
if (pthread_cancel (th) != 0)
{
- printf ("cancel in round %d failed\n", cnt);
+ printf ("cancel in round %zd failed\n", cnt);
exit (1);
}
void *status;
if (pthread_join (th, &status) != 0)
{
- printf ("join in round %d failed\n", cnt);
+ printf ("join in round %zd failed\n", cnt);
exit (1);
}
if (status != PTHREAD_CANCELED)
{
- printf ("thread in round %d not canceled\n", cnt);
+ printf ("thread in round %zd not canceled\n", cnt);
exit (1);
}
- printf ("test %d successful\n", cnt);
+ printf ("test %zd successful\n", cnt);
if (pthread_barrier_destroy (&b2) != 0)
{