tests: add missing unsigned long casts to pthread_self()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 19 Jun 2013 13:04:55 +0000 (09:04 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 19 Jun 2013 13:06:57 +0000 (09:06 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_hash_rw.c
tests/test_urcu_hash_unique.c
tests/test_urcu_lfq.c
tests/test_urcu_lfs.c
tests/test_urcu_wfq.c
tests/test_urcu_wfs.c

index f30207d000ca039f0c3394b0fefce3bbb41aecb7..b6290e9c38235c2e8b43d7291dd8d9573ce19af9 100644 (file)
@@ -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);
 
index b36d782791a9686ae992fc6cfb3fe52fe7c3a3de..331c9bd57cf8152e25c778aad04df00a34d39b49 100644 (file)
@@ -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);
 
index 6d0f41a62bedaf2b859815903f0cd303bbdef450..c648f768f9c144c844a10a74eb174e0f1be5015b 100644 (file)
@@ -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);
index 9636f5bb0da7a935f3e52092d0b3cbef1278cea8..707becafc71d3bf5c073ad92af449d91347a3057 100644 (file)
@@ -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);
index 0940224ecbae653a00f8e83e16f8c7f17441a326..01e159222a25b429534b6b330767ebba3608d2a5 100644 (file)
@@ -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);
index 043d842e73b5a4b93c9b462120add91bae1c5e23..9ec95ef197643f787b1c8e8fb61e755091f398e4 100644 (file)
@@ -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),
This page took 0.04039 seconds and 4 git commands to generate.