[PATCH] D36192: [tsan] Fix format string in WriteMemoryProfile

Kuba (Brecka) Mracek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 1 14:45:16 PDT 2017


kubamracek created this revision.
kubamracek added a project: Sanitizers.

The current format string is broken and fails to parse.


Repository:
  rL LLVM

https://reviews.llvm.org/D36192

Files:
  lib/tsan/rtl/tsan_platform_mac.cc


Index: lib/tsan/rtl/tsan_platform_mac.cc
===================================================================
--- lib/tsan/rtl/tsan_platform_mac.cc
+++ lib/tsan/rtl/tsan_platform_mac.cc
@@ -167,8 +167,8 @@
 #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,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36192.109228.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170801/bfa98f68/attachment.bin>


More information about the llvm-commits mailing list