summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-07-22 22:02:48 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-07-22 22:02:48 +0000
commitf57a430b90985d142a39816a41b9379f9af84de3 (patch)
tree26a63ab92c75726f4df33c3213c687dc65b89dd8 /lldb/source/Interpreter
parent0e957cf714c57bc018f5db83220857aad354f957 (diff)
downloadbcm5719-llvm-f57a430b90985d142a39816a41b9379f9af84de3.tar.gz
bcm5719-llvm-f57a430b90985d142a39816a41b9379f9af84de3.zip
ScriptInterpreterPython: %p should be used with void-pointer
printf's %p format specifier expects an argument of type void-pointer, not type PyThreadState*. Fix this with a static_cast. Differential Revision: http://reviews.llvm.org/D4632 llvm-svn: 213695
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreterPython.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
index 9afcbbeed45..ec541b14a90 100644
--- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp
@@ -804,7 +804,7 @@ public:
int num_threads = PyThreadState_SetAsyncExc(tid, PyExc_KeyboardInterrupt);
if (log)
log->Printf("ScriptInterpreterPython::NonInteractiveInputReaderCallback, eInputReaderInterrupt, tid = %ld, num_threads = %d, state = %p",
- tid,num_threads,state);
+ tid, num_threads, static_cast<void *>(state));
}
else if (log)
log->Printf("ScriptInterpreterPython::NonInteractiveInputReaderCallback, eInputReaderInterrupt, state = NULL");
OpenPOWER on IntegriCloud