From: Kuba Mracek Date: Mon, 7 Aug 2017 18:12:59 +0000 (+0000) Subject: [tsan] Fix format string in WriteMemoryProfile X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=507b1e280cf5c18f246a7f4bb241c4391ed534fc;p=platform%2Fupstream%2Fllvm.git [tsan] Fix format string in WriteMemoryProfile The current format string is broken and fails to parse. Differential Revision: https://reviews.llvm.org/D36192 llvm-svn: 310276 --- diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc index 73a656f..4570286 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc @@ -167,8 +167,8 @@ void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) { #else // !SANITIZER_GO "app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n" #endif - "stacks: %ld unique IDs, %ld kB allocated\n" - "threads: %ld total, %ld live\n" + "stacks: %zd unique IDs, %zd kB allocated\n" + "threads: %zd total, %zd live\n" "------------------------------\n", ShadowBeg(), ShadowEnd(), shadow_res / 1024, shadow_dirty / 1024, MetaShadowBeg(), MetaShadowEnd(), meta_res / 1024, meta_dirty / 1024,