diff options
Diffstat (limited to 'test/tsan/mop_with_offset2.cc')
-rw-r--r-- | test/tsan/mop_with_offset2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tsan/mop_with_offset2.cc b/test/tsan/mop_with_offset2.cc index 460267359cec..73c53f51233a 100644 --- a/test/tsan/mop_with_offset2.cc +++ b/test/tsan/mop_with_offset2.cc @@ -18,8 +18,8 @@ void *Thread2(void *x) { int main() { barrier_init(&barrier, 2); int *data = new int(42); - fprintf(stderr, "ptr1=%p\n", data); - fprintf(stderr, "ptr2=%p\n", (char*)data + 2); + print_address("ptr1=", 1, data); + print_address("ptr2=", 1, (char*)data + 2); pthread_t t[2]; pthread_create(&t[0], NULL, Thread1, data); pthread_create(&t[1], NULL, Thread2, data); |