From 25b75a2f7dd317db23cefec9a5b29018d473a54d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 21 Apr 2016 16:55:58 +0000 Subject: [PATCH] Host: fix some -Wformat-pedantic warnings Add explicit casts for function pointer to void * for %p conversion. NFC. llvm-svn: 267000 --- lldb/source/Host/macosx/Host.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 69d9d6ab3f7a..e5618e67036b 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -1464,12 +1464,12 @@ Host::StartMonitoringChildProcess(Host::MonitorChildProcessCallback callback, vo ::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(callback), callback_baton, + static_cast(pid), monitor_signals, + reinterpret_cast(source)); if (source) {