[compiler-rt] 7185007 - sanitizer_common: fix format string in LibIgnore
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 16 00:45:46 PDT 2021
Author: Dmitry Vyukov
Date: 2021-08-16T09:45:42+02:00
New Revision: 7185007735cd08a1928765f08301c48382c6222e
URL: https://github.com/llvm/llvm-project/commit/7185007735cd08a1928765f08301c48382c6222e
DIFF: https://github.com/llvm/llvm-project/commit/7185007735cd08a1928765f08301c48382c6222e.diff
LOG: sanitizer_common: fix format string in LibIgnore
uptr should be printed with %zu.
Differential Revision: https://reviews.llvm.org/D108106
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
index 79f2f6a1517e..caaba3155a7b 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
@@ -24,7 +24,7 @@ LibIgnore::LibIgnore(LinkerInitialized) {
void LibIgnore::AddIgnoredLibrary(const char *name_templ) {
Lock lock(&mutex_);
if (count_ >= kMaxLibs) {
- Report("%s: too many ignored libraries (max: %lu)\n", SanitizerToolName,
+ Report("%s: too many ignored libraries (max: %zu)\n", SanitizerToolName,
kMaxLibs);
Die();
}
More information about the llvm-commits
mailing list