[Lldb-commits] [lldb] c140322 - Use zu rather than llu format specifier for size_t (-Wformat warning fix).
Eric Christopher via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 16 19:28:18 PDT 2020
Author: Eric Christopher
Date: 2020-09-16T19:28:05-07:00
New Revision: c140322819806cb292e079d62f2e9dbab697c08c
URL: https://github.com/llvm/llvm-project/commit/c140322819806cb292e079d62f2e9dbab697c08c
DIFF: https://github.com/llvm/llvm-project/commit/c140322819806cb292e079d62f2e9dbab697c08c.diff
LOG: Use zu rather than llu format specifier for size_t (-Wformat warning fix).
Added:
Modified:
lldb/source/Expression/REPL.cpp
Removed:
################################################################################
diff --git a/lldb/source/Expression/REPL.cpp b/lldb/source/Expression/REPL.cpp
index 1f2b009c4893..c3d14960f74c 100644
--- a/lldb/source/Expression/REPL.cpp
+++ b/lldb/source/Expression/REPL.cpp
@@ -196,7 +196,7 @@ static bool ReadCode(const std::string &path, std::string &code,
const size_t max_size = code.max_size();
if (file_size > max_size) {
error_sp->Printf("file at path '%s' too large: "
- "file_size = %llu, max_size = %llu\n",
+ "file_size = %zu, max_size = %zu\n",
path.c_str(), file_size, max_size);
return false;
}
More information about the lldb-commits
mailing list