[Lldb-commits] [lldb] r267000 - Host: fix some -Wformat-pedantic warnings

Saleem Abdulrasool via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 21 09:55:58 PDT 2016


Author: compnerd
Date: Thu Apr 21 11:55:58 2016
New Revision: 267000

URL: http://llvm.org/viewvc/llvm-project?rev=267000&view=rev
Log:
Host: fix some -Wformat-pedantic warnings

Add explicit casts for function pointer to void * for %p conversion.  NFC.

Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=267000&r1=266999&r2=267000&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Thu Apr 21 11:55:58 2016
@@ -1464,12 +1464,12 @@ Host::StartMonitoringChildProcess(Host::
                                                          ::dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT,0));
 
     if (log)
-        log->Printf ("Host::StartMonitoringChildProcess (callback=%p, baton=%p, pid=%i, monitor_signals=%i) source = %p\n",
-                     callback,
-                     callback_baton,
-                     (int)pid,
-                     monitor_signals,
-                     source);
+        log->Printf("Host::StartMonitoringChildProcess "
+                    "(callback=%p, baton=%p, pid=%i, monitor_signals=%i) "
+                    "source = %p\n",
+                    reinterpret_cast<void *>(callback), callback_baton,
+                    static_cast<int>(pid), monitor_signals,
+                    reinterpret_cast<void *>(source));
 
     if (source)
     {




More information about the lldb-commits mailing list