From 7185007735cd08a1928765f08301c48382c6222e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Aug 2021 09:43:26 +0200 Subject: [PATCH] sanitizer_common: fix format string in LibIgnore uptr should be printed with %zu. Differential Revision: https://reviews.llvm.org/D108106 --- compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp index 79f2f6a..caaba31 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(); } -- 2.7.4