[Lldb-commits] [PATCH] ScriptInterpreterPython: %p should be used with void-pointer

David Majnemer david.majnemer at gmail.com
Tue Jul 22 15:11:34 PDT 2014


Closed by commit rL213695 (authored by @majnemer).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4632

Files:
  lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp

Index: lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
===================================================================
--- lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
+++ lldb/trunk/source/Interpreter/ScriptInterpreterPython.cpp
@@ -804,7 +804,7 @@
             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");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4632.11791.patch
Type: text/x-patch
Size: 830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140722/7609fd67/attachment.bin>


More information about the lldb-commits mailing list