Index: test/tsan/global_race.cc =================================================================== --- test/tsan/global_race.cc +++ test/tsan/global_race.cc @@ -13,7 +13,7 @@ } int main() { - fprintf(stderr, "addr=%p\n", GlobalData); + fprintf(stderr, "addr=0x%012lx\n", (unsigned long) GlobalData); pthread_t t; pthread_create(&t, 0, Thread, 0); GlobalData[2] = 43; Index: test/tsan/global_race2.cc =================================================================== --- test/tsan/global_race2.cc +++ test/tsan/global_race2.cc @@ -13,7 +13,7 @@ } int main() { - fprintf(stderr, "addr2=%p\n", &x); + fprintf(stderr, "addr2=0x%012lx\n", (unsigned long) &x); pthread_t t; pthread_create(&t, 0, Thread, 0); x = 0; Index: test/tsan/global_race3.cc =================================================================== --- test/tsan/global_race3.cc +++ test/tsan/global_race3.cc @@ -18,7 +18,7 @@ } int main() { - fprintf(stderr, "addr3=%p\n", XXX::YYY::ZZZ); + fprintf(stderr, "addr3=0x%012lx\n", (unsigned long) XXX::YYY::ZZZ); pthread_t t; pthread_create(&t, 0, Thread, 0); XXX::YYY::ZZZ[0] = 0;