[test][sanitizer] Reformat and print to stderr
authorVitaly Buka <vitalybuka@google.com>
Thu, 22 Jun 2023 06:05:21 +0000 (23:05 -0700)
committerVitaly Buka <vitalybuka@google.com>
Thu, 22 Jun 2023 06:21:41 +0000 (23:21 -0700)
compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c

index df0e52a..e22349f 100644 (file)
 // FIXME: Make it work. Don't xfail to avoid excessive memory usage.
 // UNSUPPORTED: asan, msan, hwasan
 
-voidp;
+void *p;
 
 int main(int argc, char **argv) {
-  for (int i = 0; i < sizeof(void*) * 8; ++i) {
+  for (int i = 0; i < sizeof(void *) * 8; ++i) {
     p = malloc(1ull << i);
-    printf("%llu: %p\n", (1ull << i), p);
+    fprintf(stderr, "%llu: %p\n", (1ull << i), p);
     free(p);
   }
   return 0;