[compiler-rt] r310276 - [tsan] Fix format string in WriteMemoryProfile
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 11:12:59 PDT 2017
Author: kuba.brecka
Date: Mon Aug 7 11:12:59 2017
New Revision: 310276
URL: http://llvm.org/viewvc/llvm-project?rev=310276&view=rev
Log:
[tsan] Fix format string in WriteMemoryProfile
The current format string is broken and fails to parse.
Differential Revision: https://reviews.llvm.org/D36192
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc?rev=310276&r1=310275&r2=310276&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc Mon Aug 7 11:12:59 2017
@@ -167,8 +167,8 @@ void WriteMemoryProfile(char *buf, uptr
#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,
More information about the llvm-commits
mailing list