]> git.lttng.org Git - urcu.git/commitdiff
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:04:55 +0000 (09:04 -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 c750b4700d4e7785635b85f0d4d2b82fced09cc6..0082e87b61ba69ff32c44f99456e831bd622b55e 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 e911694a5b888a864c492b83fdbc42c9f2e459ec..28b2edf5f1d066a10f4c7682f3ad11b46dea78a4 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 87188d8bc1c7ec9f259956f3b78aef4f4c673b39..f8dafab479165050f4679b2f1e9cc6aca2122013 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);
@@ -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);
index 6bcf1be7e012ed1cf7cbf4d997bd1e9d78566bc6..4d6925b8257dbc269ae2a1f08ad1048172a9e676 100644 (file)
@@ -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);
index c361e02e2f03e9ddcaa131b99ef8eabea7e3e609..7cadae17641bb2eac17180389c82f354f40db8c0 100644 (file)
@@ -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);
index 31ce14683bdbcd3f9afb165b2dd2df820dc3938b..c0c55998873c859eed8d697eb97ce9702d036b02 100644 (file)
@@ -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);
This page took 0.037622 seconds and 4 git commands to generate.