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/Interpreter/ScriptInterpreterPython.cpp | |
| parent | 33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff) | |
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/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 91fb9273b156..446d6779fcb3 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -204,8 +204,7 @@ ScriptInterpreterPython::ScriptInterpreterPython (CommandInterpreter &interprete PyRun_SimpleString (run_string.GetData()); run_string.Clear(); - run_string.Printf ("run_one_line (%s, 'import gnu_libstdcpp')", m_dictionary_name.c_str(), - interpreter.GetDebugger().GetID()); + run_string.Printf ("run_one_line (%s, 'import gnu_libstdcpp')", m_dictionary_name.c_str()); PyRun_SimpleString (run_string.GetData()); if (m_dbg_stdout != NULL) @@ -629,7 +628,7 @@ ScriptInterpreterPython::InputReaderCallback if (script_interpreter->m_embedded_python_pty.GetMasterFileDescriptor() != -1) { if (log) - log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %d", bytes, + log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %lu", bytes, bytes_len); if (bytes && bytes_len) { @@ -643,7 +642,7 @@ ScriptInterpreterPython::InputReaderCallback else { if (log) - log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %d, Master File Descriptor is bad.", + log->Printf ("ScriptInterpreterPython::InputReaderCallback, GotToken, bytes='%s', byte_len = %lu, Master File Descriptor is bad.", bytes, bytes_len); reader.SetIsDone (true); |
