X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_hash.c;fp=tests%2Ftest_urcu_hash.c;h=514d0bcdcf20496805ef3fc97c90f3f51b6acb5a;hp=7a28677faf4a283d7827a51a4af73ce77f6cf977;hb=6ff854acfa013195bdb71dddc654ec76a4c296c9;hpb=8cbc3cdca7f1320e3c2412654091fe94931ce62b diff --git a/tests/test_urcu_hash.c b/tests/test_urcu_hash.c index 7a28677..514d0bc 100644 --- a/tests/test_urcu_hash.c +++ b/tests/test_urcu_hash.c @@ -202,7 +202,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(); @@ -544,7 +545,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); if (!tid_reader) {