X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_hash.c;h=a2b5b7bca656902dc11b3d3e3d2902a8235df0c0;hb=2d72fae24ceebe2efa486b5bad421f39917ec0a6;hp=5710de08135f8e0f58be45bfec59cca94636031e;hpb=e3378d48162f484bb8bc94d77ce55d7d3ee018ed;p=urcu.git diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index 5710de0..a2b5b7b 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -201,7 +201,8 @@ unsigned long test_compare(const void *key1, size_t key1_len, void *thr_count(void *arg) { printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n", - "counter", pthread_self(), (unsigned long)gettid()); + "counter", (unsigned long) pthread_self(), + (unsigned long) gettid()); rcu_register_thread(); @@ -536,7 +537,8 @@ int main(int argc, char **argv) printf_verbose("Number of hash chains: %lu.\n", nr_hash_chains); printf_verbose("thread %-6s, thread id : %lx, tid %lu\n", - "main", pthread_self(), (unsigned long)gettid()); + "main", (unsigned long) pthread_self(), + (unsigned long) gettid()); tid_reader = malloc(sizeof(*tid_reader) * nr_readers); tid_writer = malloc(sizeof(*tid_writer) * nr_writers);