Host: fix some -Wformat-pedantic warnings

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

llvm-svn: 267000
This commit is contained in:
Saleem Abdulrasool 2016-04-21 16:55:58 +00:00
parent 92c43699bc
commit 25b75a2f7d
1 changed files with 6 additions and 6 deletions

View File

@ -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<void *>(callback), callback_baton,
static_cast<int>(pid), monitor_signals,
reinterpret_cast<void *>(source));
if (source)
{