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