From 9540f502816c533fe632e34b1203586d9eec1610 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 21 Jun 2023 23:05:21 -0700 Subject: [PATCH] [test][sanitizer] Reformat and print to stderr --- compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c b/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c index df0e52a..e22349f 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c +++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/huge_malloc.c @@ -12,12 +12,12 @@ // FIXME: Make it work. Don't xfail to avoid excessive memory usage. // UNSUPPORTED: asan, msan, hwasan -void* p; +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; -- 2.7.4