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.8.0~68 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a39bde3b86162601c7d670d97a962fc3f029fdbd;p=urcu.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 f30207d..b6290e9 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 b36d782..331c9bd 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 6d0f41a..c648f76 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); @@ -257,7 +257,7 @@ void *thr_dequeuer(void *_count) rcu_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 9636f5b..707beca 100644 --- a/tests/test_urcu_lfs.c +++ b/tests/test_urcu_lfs.c @@ -210,7 +210,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); @@ -316,7 +316,7 @@ static 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 0940224..01e1592 100644 --- a/tests/test_urcu_wfq.c +++ b/tests/test_urcu_wfq.c @@ -193,7 +193,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); @@ -232,7 +232,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 043d842..9ec95ef 100644 --- a/tests/test_urcu_wfs.c +++ b/tests/test_urcu_wfs.c @@ -213,7 +213,7 @@ fail: printf_verbose("enqueuer thread_end, thread id : %lx, tid %lu, " "enqueues %llu successful_enqueues %llu, " "empty_dest_enqueues %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_enqueues), URCU_TLS(nr_successful_enqueues), @@ -308,7 +308,7 @@ static void *thr_dequeuer(void *_count) printf_verbose("dequeuer thread_end, thread id : %lx, tid %lu, " "dequeues %llu, successful_dequeues %llu " "pop_all %llu pop_last %llu\n", - pthread_self(), + (unsigned long) pthread_self(), (unsigned long) gettid(), URCU_TLS(nr_dequeues), URCU_TLS(nr_successful_dequeues), URCU_TLS(nr_pop_all),