summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBHostOS.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-04 04:06:10 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-04 04:06:10 +0000
commit324a1036194f95385b26c941bc82cc6dadf50ac7 (patch)
tree06bb7d9660aafa1ff4e69cfa813b5c122038e09f /lldb/source/API/SBHostOS.cpp
parentf3aefca7c1bcdd3a6445b7ae04a9f69af567a7e7 (diff)
downloadbcm5719-llvm-324a1036194f95385b26c941bc82cc6dadf50ac7.tar.gz
bcm5719-llvm-324a1036194f95385b26c941bc82cc6dadf50ac7.zip
sweep up -Wformat warnings from gcc
This is a purely mechanical change explicitly casting any parameters for printf style conversion. This cleans up the warnings emitted by gcc 4.8 on Linux. llvm-svn: 205607
Diffstat (limited to 'lldb/source/API/SBHostOS.cpp')
-rw-r--r--lldb/source/API/SBHostOS.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/API/SBHostOS.cpp b/lldb/source/API/SBHostOS.cpp
index 5f9ba625db1..06fe5fb68fb 100644
--- a/lldb/source/API/SBHostOS.cpp
+++ b/lldb/source/API/SBHostOS.cpp
@@ -50,8 +50,10 @@ SBHostOS::ThreadCreate
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
if (log)
- log->Printf ("SBHostOS::ThreadCreate (name=\"%s\", thread_function=%p, thread_arg=%p, error_ptr=%p)", name,
- thread_function, thread_arg, error_ptr);
+ log->Printf ("SBHostOS::ThreadCreate (name=\"%s\", thread_function=%p, thread_arg=%p, error_ptr=%p)",
+ name, reinterpret_cast<void*>(thread_function),
+ static_cast<void*>(thread_arg),
+ static_cast<void*>(error_ptr));
// FIXME: You should log the return value?
OpenPOWER on IntegriCloud