From: Mathieu Desnoyers Date: Wed, 19 Jun 2013 13:04:55 +0000 (-0400) Subject: tests: add missing unsigned long casts to pthread_self() X-Git-Tag: v0.7.8~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=baf05c7167c29785d968404dec7e90cd428cc4cd;p=userspace-rcu.git tests: add missing unsigned long casts to pthread_self() Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_hash_rw.c b/tests/test_urcu_hash_rw.c index c750b47..0082e87 100644 --- a/tests/test_urcu_hash_rw.c +++ b/tests/test_urcu_hash_rw.c @@ -111,7 +111,7 @@ void *test_hash_rw_thr_reader(void *_count) "reader", (unsigned long) pthread_self(), (unsigned long) gettid()); printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n", - pthread_self(), URCU_TLS(lookup_fail), + (unsigned long) pthread_self(), URCU_TLS(lookup_fail), URCU_TLS(lookup_ok)); return ((void*)1); diff --git a/tests/test_urcu_hash_unique.c b/tests/test_urcu_hash_unique.c index e911694..28b2edf 100644 --- a/tests/test_urcu_hash_unique.c +++ b/tests/test_urcu_hash_unique.c @@ -113,7 +113,7 @@ void *test_hash_unique_thr_reader(void *_count) "reader", (unsigned long) pthread_self(), (unsigned long) gettid()); printf_verbose("readid : %lx, lookupfail %lu, lookupok %lu\n", - pthread_self(), URCU_TLS(lookup_fail), + (unsigned long) pthread_self(), URCU_TLS(lookup_fail), URCU_TLS(lookup_ok)); return ((void*)1); diff --git a/tests/test_urcu_lfq.c b/tests/test_urcu_lfq.c index 87188d8..f8dafab 100644 --- a/tests/test_urcu_lfq.c +++ b/tests/test_urcu_lfq.c @@ -200,7 +200,7 @@ fail: count[1] = URCU_TLS(nr_successful_enqueues); printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, " "enqueues %llu successful_enqueues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_enqueues), URCU_TLS(nr_successful_enqueues)); return ((void*)1); @@ -263,7 +263,7 @@ void *thr_dequeuer(void *_count) rcu_defer_unregister_thread(); printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, " "dequeues %llu, successful_dequeues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues)); count[0] = URCU_TLS(nr_dequeues); diff --git a/tests/test_urcu_lfs.c b/tests/test_urcu_lfs.c index 6bcf1be..4d6925b 100644 --- a/tests/test_urcu_lfs.c +++ b/tests/test_urcu_lfs.c @@ -199,7 +199,7 @@ fail: count[1] = URCU_TLS(nr_successful_enqueues); printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, " "enqueues %llu successful_enqueues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_enqueues), URCU_TLS(nr_successful_enqueues)); return ((void*)1); @@ -261,7 +261,7 @@ void *thr_dequeuer(void *_count) printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, " "dequeues %llu, successful_dequeues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues)); count[0] = URCU_TLS(nr_dequeues); diff --git a/tests/test_urcu_wfq.c b/tests/test_urcu_wfq.c index c361e02..7cadae1 100644 --- a/tests/test_urcu_wfq.c +++ b/tests/test_urcu_wfq.c @@ -188,7 +188,7 @@ fail: count[1] = URCU_TLS(nr_successful_enqueues); printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, " "enqueues %llu successful_enqueues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_enqueues), URCU_TLS(nr_successful_enqueues)); return ((void*)1); @@ -227,7 +227,7 @@ void *thr_dequeuer(void *_count) printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, " "dequeues %llu, successful_dequeues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues)); count[0] = URCU_TLS(nr_dequeues); diff --git a/tests/test_urcu_wfs.c b/tests/test_urcu_wfs.c index 31ce146..c0c5599 100644 --- a/tests/test_urcu_wfs.c +++ b/tests/test_urcu_wfs.c @@ -188,7 +188,7 @@ fail: count[1] = URCU_TLS(nr_successful_enqueues); printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, " "enqueues %llu successful_enqueues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_enqueues), URCU_TLS(nr_successful_enqueues)); return ((void*)1); @@ -227,7 +227,7 @@ void *thr_dequeuer(void *_count) printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, " "dequeues %llu, successful_dequeues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues)); count[0] = URCU_TLS(nr_dequeues);