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/Symbol/SymbolContext.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/Symbol/SymbolContext.cpp')
-rw-r--r-- | lldb/source/Symbol/SymbolContext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Symbol/SymbolContext.cpp b/lldb/source/Symbol/SymbolContext.cpp index ac91161f7d6..f1e581f7161 100644 --- a/lldb/source/Symbol/SymbolContext.cpp +++ b/lldb/source/Symbol/SymbolContext.cpp @@ -910,15 +910,15 @@ SymbolContextSpecifier::GetDescription (Stream *s, lldb::DescriptionLevel level) s->Printf ("File: %s", path_str); if (m_type == eLineStartSpecified) { - s->Printf (" from line %lu", m_start_line); + s->Printf (" from line %zu", m_start_line); if (m_type == eLineEndSpecified) - s->Printf ("to line %lu", m_end_line); + s->Printf ("to line %zu", m_end_line); else s->Printf ("to end"); } else if (m_type == eLineEndSpecified) { - s->Printf (" from start to line %ld", m_end_line); + s->Printf (" from start to line %zu", m_end_line); } s->Printf (".\n"); } @@ -926,16 +926,16 @@ SymbolContextSpecifier::GetDescription (Stream *s, lldb::DescriptionLevel level) if (m_type == eLineStartSpecified) { s->Indent(); - s->Printf ("From line %lu", m_start_line); + s->Printf ("From line %zu", m_start_line); if (m_type == eLineEndSpecified) - s->Printf ("to line %lu", m_end_line); + s->Printf ("to line %zu", m_end_line); else s->Printf ("to end"); s->Printf (".\n"); } else if (m_type == eLineEndSpecified) { - s->Printf ("From start to line %ld.\n", m_end_line); + s->Printf ("From start to line %zu.\n", m_end_line); } if (m_type == eFunctionSpecified) |