tests: add missing unsigned long casts to pthread_self()
[urcu.git] / tests / test_urcu_lfq.c
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);
This page took 0.023172 seconds and 4 git commands to generate.