diff options
author | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
commit | fd54b368ea4d1bd481ac4d203362c2a5556418d0 (patch) | |
tree | 3adaaf91c485565d39e32762804b69439977c8fd /lldb/source/Core/Debugger.cpp | |
parent | 33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff) | |
download | bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.tar.gz bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.zip |
Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag
incorrect uses. Fix all incorrect uses. Most of these are innocuous,
a few were resulting in crashes.
llvm-svn: 140185
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index debba813a85..c101038ca89 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -790,7 +790,7 @@ ScanBracketedRange (const char* var_name_begin, *index_lower = ::strtoul (*open_bracket_position+1, &end, 0); *index_higher = *index_lower; if (log) - log->Printf("[%d] detected, high index is same", *index_lower); + log->Printf("[%lld] detected, high index is same", *index_lower); } else if (*close_bracket_position && *close_bracket_position < var_name_end) { @@ -798,7 +798,7 @@ ScanBracketedRange (const char* var_name_begin, *index_lower = ::strtoul (*open_bracket_position+1, &end, 0); *index_higher = ::strtoul (*separator_position+1, &end, 0); if (log) - log->Printf("[%d-%d] detected", *index_lower, *index_higher); + log->Printf("[%lld-%lld] detected", *index_lower, *index_higher); } else { @@ -1267,7 +1267,7 @@ Debugger::FormatPrompt if (!item) { if (log) - log->Printf("ERROR in getting child item at index %d", index_lower); + log->Printf("ERROR in getting child item at index %lld", index_lower); } else { |