diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2013-10-31 23:55:19 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-10-31 23:55:19 +0000 |
commit | 779f921311d9c94013eae1b260a6765411f74e9f (patch) | |
tree | 931584df058f47785ee7628797b208a0334006cb /lldb/source/Expression/IRForTarget.cpp | |
parent | 60bd35012aad1f72e6a4845b9b4bc42ebdc8e483 (diff) | |
download | bcm5719-llvm-779f921311d9c94013eae1b260a6765411f74e9f.tar.gz bcm5719-llvm-779f921311d9c94013eae1b260a6765411f74e9f.zip |
Fix the format warnings.
In almost all cases, the misuse is about "%lu" being used instead of the correct "%zu" (even though these are compatible on 64-bit platforms in practice). There are even a couple of cases where "%ld" (ie., signed int) is used instead of "%zu", and one where "%lu" is used instead of "%" PRIu64.
Fixes bug #17551.
Patch by "/dev/humancontroller"
llvm-svn: 193832
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index 4d14ebd7fd1..d68dc002a5a 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -2028,7 +2028,7 @@ IRForTarget::ReplaceStaticLiterals (llvm::BasicBlock &basic_block) } ss.flush(); - log->Printf("Found ConstantFP with size %lu and raw data %s", operand_data_size, s.c_str()); + log->Printf("Found ConstantFP with size %zu and raw data %s", operand_data_size, s.c_str()); } lldb_private::DataBufferHeap data(operand_data_size, 0); @@ -2491,7 +2491,7 @@ IRForTarget::ReplaceVariables (Function &llvm_function) } if (log) - log->Printf("Total structure [align %" PRId64 ", size %lu]", alignment, size); + log->Printf("Total structure [align %" PRId64 ", size %zu]", alignment, size); return true; } |