[compiler-rt] 1a0076d - [sanitizer] Fix format string
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 14 16:53:58 PDT 2021
Author: Vitaly Buka
Date: 2021-08-14T16:53:46-07:00
New Revision: 1a0076db69c2df1a2c1e7452d7a90e2aa514300d
URL: https://github.com/llvm/llvm-project/commit/1a0076db69c2df1a2c1e7452d7a90e2aa514300d
DIFF: https://github.com/llvm/llvm-project/commit/1a0076db69c2df1a2c1e7452d7a90e2aa514300d.diff
LOG: [sanitizer] Fix format string
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_allocator_size_class_map.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_size_class_map.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_size_class_map.h
index c50d13303edec..361793f2490ac 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_size_class_map.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_size_class_map.h
@@ -193,13 +193,13 @@ class SizeClassMap {
uptr cached = MaxCachedHint(s) * s;
if (i == kBatchClassID)
d = p = l = 0;
- Printf("c%02zd => s: %zd
diff : +%zd %02zd%% l %zd "
- "cached: %zd %zd; id %zd\n",
- i, Size(i), d, p, l, MaxCachedHint(s), cached, ClassID(s));
+ Printf(
+ "c%02zu => s: %zu
diff : +%zu %02zu%% l %zu cached: %zu %zu; id %zu\n",
+ i, Size(i), d, p, l, MaxCachedHint(s), cached, ClassID(s));
total_cached += cached;
prev_s = s;
}
- Printf("Total cached: %zd\n", total_cached);
+ Printf("Total cached: %zu\n", total_cached);
}
static void Validate() {
More information about the llvm-commits
mailing list