summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/mop_with_offset.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/tsan/mop_with_offset.cc')
-rw-r--r--compiler-rt/test/tsan/mop_with_offset.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/tsan/mop_with_offset.cc b/compiler-rt/test/tsan/mop_with_offset.cc
index c67e81e09cd..e2496d099ef 100644
--- a/compiler-rt/test/tsan/mop_with_offset.cc
+++ b/compiler-rt/test/tsan/mop_with_offset.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);
OpenPOWER on IntegriCloud