]> git.proxmox.com Git - rustc.git/blobdiff - src/compiler-rt/test/tsan/Linux/user_malloc.cc
New upstream version 1.12.0+dfsg1
[rustc.git] / src / compiler-rt / test / tsan / Linux / user_malloc.cc
index c671bfcdd17a8de7edfb2c869c2aaed307aba11f..9c3ce681d748561b59db54d7c7f622c6a63b7ed9 100644 (file)
@@ -8,7 +8,7 @@ extern "C" void __interceptor_free(void *p);
 extern "C" void *malloc(unsigned long size) {
   static int first = 0;
   if (__sync_lock_test_and_set(&first, 1) == 0)
-    printf("user malloc\n");
+    fprintf(stderr, "user malloc\n");
   return __interceptor_malloc(size);
 }