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
diff --git a/lldb/source/API/SBAddress.cpp b/lldb/source/API/SBAddress.cpp
index 799c909..6aec072 100644
--- a/lldb/source/API/SBAddress.cpp
+++ b/lldb/source/API/SBAddress.cpp
@@ -127,13 +127,15 @@
             addr = m_opaque_ap->GetLoadAddress (target_sp.get());
         }
     }
-    
+
     if (log)
     {
         if (addr == LLDB_INVALID_ADDRESS)
-            log->Printf ("SBAddress::GetLoadAddress (SBTarget(%p)) => LLDB_INVALID_ADDRESS", target_sp.get());
+            log->Printf ("SBAddress::GetLoadAddress (SBTarget(%p)) => LLDB_INVALID_ADDRESS",
+                         static_cast<void*>(target_sp.get()));
         else
-            log->Printf ("SBAddress::GetLoadAddress (SBTarget(%p)) => 0x%" PRIx64, target_sp.get(), addr);
+            log->Printf ("SBAddress::GetLoadAddress (SBTarget(%p)) => 0x%" PRIx64,
+                         static_cast<void*>(target_sp.get()), addr);
     }
 
     return addr;
diff --git a/lldb/source/API/SBBreakpoint.cpp b/lldb/source/API/SBBreakpoint.cpp
index 2c9cd12..eb379ab 100644
--- a/lldb/source/API/SBBreakpoint.cpp
+++ b/lldb/source/API/SBBreakpoint.cpp
@@ -124,9 +124,11 @@
     if (log)
     {
         if (break_id == LLDB_INVALID_BREAK_ID)
-            log->Printf ("SBBreakpoint(%p)::GetID () => LLDB_INVALID_BREAK_ID", m_opaque_sp.get());
+            log->Printf ("SBBreakpoint(%p)::GetID () => LLDB_INVALID_BREAK_ID",
+                         static_cast<void*>(m_opaque_sp.get()));
         else
-            log->Printf ("SBBreakpoint(%p)::GetID () => %u", m_opaque_sp.get(), break_id);
+            log->Printf ("SBBreakpoint(%p)::GetID () => %u",
+                         static_cast<void*>(m_opaque_sp.get()), break_id);
     }
 
     return break_id;
@@ -225,7 +227,8 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetEnabled (enabled=%i)", m_opaque_sp.get(), enable);
+        log->Printf ("SBBreakpoint(%p)::SetEnabled (enabled=%i)",
+                     static_cast<void*>(m_opaque_sp.get()), enable);
 
     if (m_opaque_sp)
     {
@@ -252,7 +255,8 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetOneShot (one_shot=%i)", m_opaque_sp.get(), one_shot);
+        log->Printf ("SBBreakpoint(%p)::SetOneShot (one_shot=%i)",
+                     static_cast<void*>(m_opaque_sp.get()), one_shot);
 
     if (m_opaque_sp)
     {
@@ -291,8 +295,9 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetIgnoreCount (count=%u)", m_opaque_sp.get(), count);
-        
+        log->Printf ("SBBreakpoint(%p)::SetIgnoreCount (count=%u)",
+                     static_cast<void*>(m_opaque_sp.get()), count);
+
     if (m_opaque_sp)
     {
         Mutex::Locker api_locker (m_opaque_sp->GetTarget().GetAPIMutex());
@@ -333,7 +338,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetHitCount () => %u", m_opaque_sp.get(), count);
+        log->Printf ("SBBreakpoint(%p)::GetHitCount () => %u",
+                     static_cast<void*>(m_opaque_sp.get()), count);
 
     return count;
 }
@@ -350,7 +356,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetIgnoreCount () => %u", m_opaque_sp.get(), count);
+        log->Printf ("SBBreakpoint(%p)::GetIgnoreCount () => %u",
+                     static_cast<void*>(m_opaque_sp.get()), count);
 
     return count;
 }
@@ -365,7 +372,8 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetThreadID (tid=0x%4.4" PRIx64 ")", m_opaque_sp.get(), tid);
+        log->Printf ("SBBreakpoint(%p)::SetThreadID (tid=0x%4.4" PRIx64 ")",
+                     static_cast<void*>(m_opaque_sp.get()), tid);
 
 }
 
@@ -381,7 +389,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetThreadID () => 0x%4.4" PRIx64, m_opaque_sp.get(), tid);
+        log->Printf ("SBBreakpoint(%p)::GetThreadID () => 0x%4.4" PRIx64,
+                     static_cast<void*>(m_opaque_sp.get()), tid);
     return tid;
 }
 
@@ -390,7 +399,8 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetThreadIndex (%u)", m_opaque_sp.get(), index);
+        log->Printf ("SBBreakpoint(%p)::SetThreadIndex (%u)",
+                     static_cast<void*>(m_opaque_sp.get()), index);
     if (m_opaque_sp)
     {
         Mutex::Locker api_locker (m_opaque_sp->GetTarget().GetAPIMutex());
@@ -411,18 +421,19 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetThreadIndex () => %u", m_opaque_sp.get(), thread_idx);
+        log->Printf ("SBBreakpoint(%p)::GetThreadIndex () => %u",
+                     static_cast<void*>(m_opaque_sp.get()), thread_idx);
 
     return thread_idx;
 }
-    
 
 void
 SBBreakpoint::SetThreadName (const char *thread_name)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetThreadName (%s)", m_opaque_sp.get(), thread_name);
+        log->Printf ("SBBreakpoint(%p)::SetThreadName (%s)",
+                     static_cast<void*>(m_opaque_sp.get()), thread_name);
 
     if (m_opaque_sp)
     {
@@ -444,7 +455,8 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetThreadName () => %s", m_opaque_sp.get(), name);
+        log->Printf ("SBBreakpoint(%p)::GetThreadName () => %s",
+                     static_cast<void*>(m_opaque_sp.get()), name);
 
     return name;
 }
@@ -454,7 +466,8 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetQueueName (%s)", m_opaque_sp.get(), queue_name);
+        log->Printf ("SBBreakpoint(%p)::SetQueueName (%s)",
+                     static_cast<void*>(m_opaque_sp.get()), queue_name);
     if (m_opaque_sp)
     {
         Mutex::Locker api_locker (m_opaque_sp->GetTarget().GetAPIMutex());
@@ -475,7 +488,8 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetQueueName () => %s", m_opaque_sp.get(), name);
+        log->Printf ("SBBreakpoint(%p)::GetQueueName () => %s",
+                     static_cast<void*>(m_opaque_sp.get()), name);
 
     return name;
 }
@@ -491,7 +505,9 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetNumResolvedLocations () => %" PRIu64, m_opaque_sp.get(), (uint64_t)num_resolved);
+        log->Printf ("SBBreakpoint(%p)::GetNumResolvedLocations () => %" PRIu64,
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<uint64_t>(num_resolved));
     return num_resolved;
 }
 
@@ -506,7 +522,9 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBreakpoint(%p)::GetNumLocations () => %" PRIu64, m_opaque_sp.get(), (uint64_t)num_locs);
+        log->Printf ("SBBreakpoint(%p)::GetNumLocations () => %" PRIu64,
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<uint64_t>(num_locs));
     return num_locs;
 }
 
@@ -570,9 +588,14 @@
 SBBreakpoint::SetCallback (BreakpointHitCallback callback, void *baton)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetCallback (callback=%p, baton=%p)", m_opaque_sp.get(), callback, baton);
+    {
+        void *pointer = &callback;
+        log->Printf ("SBBreakpoint(%p)::SetCallback (callback=%p, baton=%p)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     *static_cast<void**>(&pointer), static_cast<void*>(baton));
+    }
 
     if (m_opaque_sp)
     {
@@ -586,9 +609,11 @@
 SBBreakpoint::SetScriptCallbackFunction (const char *callback_function_name)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetScriptCallbackFunction (callback=%s)", m_opaque_sp.get(), callback_function_name);
+        log->Printf ("SBBreakpoint(%p)::SetScriptCallbackFunction (callback=%s)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     callback_function_name);
 
     if (m_opaque_sp)
     {
@@ -603,9 +628,10 @@
 SBBreakpoint::SetScriptCallbackBody (const char *callback_body_text)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetScriptCallbackBody: callback body:\n%s)", m_opaque_sp.get(), callback_body_text);
+        log->Printf ("SBBreakpoint(%p)::SetScriptCallbackBody: callback body:\n%s)",
+                     static_cast<void*>(m_opaque_sp.get()), callback_body_text);
 
     SBError sb_error;
     if (m_opaque_sp)
@@ -618,7 +644,7 @@
     }
     else
         sb_error.SetErrorString("invalid breakpoint");
-    
+
     return sb_error;
 }
 
diff --git a/lldb/source/API/SBBreakpointLocation.cpp b/lldb/source/API/SBBreakpointLocation.cpp
index b2b9448..4390e9a 100644
--- a/lldb/source/API/SBBreakpointLocation.cpp
+++ b/lldb/source/API/SBBreakpointLocation.cpp
@@ -46,7 +46,9 @@
         SBStream sstr;
         GetDescription (sstr, lldb::eDescriptionLevelBrief);
         log->Printf ("SBBreakpointLocation::SBBreakpointLocaiton (const lldb::BreakpointLocationsSP &break_loc_sp"
-                     "=%p)  => this.sp = %p (%s)", break_loc_sp.get(), m_opaque_sp.get(), sstr.GetData());
+                     "=%p)  => this.sp = %p (%s)",
+                     static_cast<void*>(break_loc_sp.get()),
+                     static_cast<void*>(m_opaque_sp.get()), sstr.GetData());
     }
 }
 
@@ -166,9 +168,11 @@
 SBBreakpointLocation::SetScriptCallbackFunction (const char *callback_function_name)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
-        log->Printf ("SBBreakpointLocation(%p)::SetScriptCallbackFunction (callback=%s)", m_opaque_sp.get(), callback_function_name);
+        log->Printf ("SBBreakpointLocation(%p)::SetScriptCallbackFunction (callback=%s)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     callback_function_name);
 
     if (m_opaque_sp)
     {
@@ -176,7 +180,6 @@
         BreakpointOptions *bp_options = m_opaque_sp->GetLocationOptions();
         m_opaque_sp->GetBreakpoint().GetTarget().GetDebugger().GetCommandInterpreter().GetScriptInterpreter()->SetBreakpointCommandCallbackFunction (bp_options,
                                                                                                                                      callback_function_name);
-        
     }
 }
 
@@ -184,10 +187,11 @@
 SBBreakpointLocation::SetScriptCallbackBody (const char *callback_body_text)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
-        log->Printf ("SBBreakpoint(%p)::SetScriptCallbackBody: callback body:\n%s)", m_opaque_sp.get(), callback_body_text);
-    
+        log->Printf ("SBBreakpoint(%p)::SetScriptCallbackBody: callback body:\n%s)",
+                     static_cast<void*>(m_opaque_sp.get()), callback_body_text);
+
     SBError sb_error;
     if (m_opaque_sp)
     {
@@ -199,7 +203,7 @@
     }
     else
         sb_error.SetErrorString("invalid breakpoint");
-    
+
     return sb_error;
 }
 
@@ -356,8 +360,9 @@
     {
         SBStream sstr;
         sb_bp.GetDescription (sstr);
-        log->Printf ("SBBreakpointLocation(%p)::GetBreakpoint () => SBBreakpoint(%p) %s", 
-                     m_opaque_sp.get(), sb_bp.get(), sstr.GetData());
+        log->Printf ("SBBreakpointLocation(%p)::GetBreakpoint () => SBBreakpoint(%p) %s",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(sb_bp.get()), sstr.GetData());
     }
     return sb_bp;
 }
diff --git a/lldb/source/API/SBBroadcaster.cpp b/lldb/source/API/SBBroadcaster.cpp
index 7168305..73eac51 100644
--- a/lldb/source/API/SBBroadcaster.cpp
+++ b/lldb/source/API/SBBroadcaster.cpp
@@ -33,7 +33,7 @@
 
     if (log)
         log->Printf ("SBBroadcaster::SBBroadcaster (name=\"%s\") => SBBroadcaster(%p)",
-                     name, m_opaque_ptr);
+                     name, static_cast<void*>(m_opaque_ptr));
 }
 
 SBBroadcaster::SBBroadcaster (lldb_private::Broadcaster *broadcaster, bool owns) :
@@ -43,8 +43,9 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API | LIBLLDB_LOG_VERBOSE));
 
     if (log)
-        log->Printf ("SBBroadcaster::SBBroadcaster (broadcaster=%p, bool owns=%i) => SBBroadcaster(%p)", 
-                     broadcaster, owns, m_opaque_ptr);
+        log->Printf ("SBBroadcaster::SBBroadcaster (broadcaster=%p, bool owns=%i) => SBBroadcaster(%p)",
+                     static_cast<void*>(broadcaster), owns,
+                     static_cast<void*>(m_opaque_ptr));
 }
 
 SBBroadcaster::SBBroadcaster (const SBBroadcaster &rhs) :
@@ -75,7 +76,8 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBBroadcaster(%p)::BroadcastEventByType (event_type=0x%8.8x, unique=%i)", m_opaque_ptr, event_type, unique);
+        log->Printf ("SBBroadcaster(%p)::BroadcastEventByType (event_type=0x%8.8x, unique=%i)",
+                     static_cast<void*>(m_opaque_ptr), event_type, unique);
 
     if (m_opaque_ptr == NULL)
         return;
@@ -92,7 +94,9 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBBroadcaster(%p)::BroadcastEventByType (SBEvent(%p), unique=%i)", m_opaque_ptr, event.get(), unique);
+        log->Printf ("SBBroadcaster(%p)::BroadcastEventByType (SBEvent(%p), unique=%i)",
+                     static_cast<void*>(m_opaque_ptr),
+                     static_cast<void*>(event.get()), unique);
 
     if (m_opaque_ptr == NULL)
         return;
@@ -109,7 +113,9 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBBroadcaster(%p)::AddInitialEventsToListener (SBListener(%p), event_mask=0x%8.8x)", m_opaque_ptr, listener.get(), requested_events);
+        log->Printf ("SBBroadcaster(%p)::AddInitialEventsToListener (SBListener(%p), event_mask=0x%8.8x)",
+                     static_cast<void*>(m_opaque_ptr),
+                     static_cast<void*>(listener.get()), requested_events);
     if (m_opaque_ptr)
         m_opaque_ptr->AddInitialEventsToListener (listener.get(), requested_events);
 }
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 419c157..388dff2 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -65,7 +65,9 @@
 
     if (log)
         log->Printf ("SBCommandInterpreter::SBCommandInterpreter (interpreter=%p)"
-                     " => SBCommandInterpreter(%p)", interpreter, m_opaque_ptr);
+                     " => SBCommandInterpreter(%p)",
+                     static_cast<void*>(interpreter),
+                     static_cast<void*>(m_opaque_ptr));
 }
 
 SBCommandInterpreter::SBCommandInterpreter(const SBCommandInterpreter &rhs) :
@@ -129,8 +131,9 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBCommandInterpreter(%p)::HandleCommand (command=\"%s\", SBCommandReturnObject(%p), add_to_history=%i)", 
-                     m_opaque_ptr, command_line, result.get(), add_to_history);
+        log->Printf ("SBCommandInterpreter(%p)::HandleCommand (command=\"%s\", SBCommandReturnObject(%p), add_to_history=%i)",
+                     static_cast<void*>(m_opaque_ptr), command_line,
+                     static_cast<void*>(result.get()), add_to_history);
 
     result.Clear();
     if (command_line && m_opaque_ptr)
@@ -150,7 +153,9 @@
         SBStream sstr;
         result.GetDescription (sstr);
         log->Printf ("SBCommandInterpreter(%p)::HandleCommand (command=\"%s\", SBCommandReturnObject(%p): %s, add_to_history=%i) => %i", 
-                     m_opaque_ptr, command_line, result.get(), sstr.GetData(), add_to_history, result.GetStatus());
+                     static_cast<void*>(m_opaque_ptr), command_line,
+                     static_cast<void*>(result.get()), sstr.GetData(),
+                     add_to_history, result.GetStatus());
     }
 
     return result.GetStatus();
@@ -166,24 +171,27 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     int num_completions = 0;
-    
+
     // Sanity check the arguments that are passed in:
     // cursor & last_char have to be within the current_line.
     if (current_line == NULL || cursor == NULL || last_char == NULL)
         return 0;
-    
+
     if (cursor < current_line || last_char < current_line)
         return 0;
-        
+
     size_t current_line_size = strlen (current_line);
     if (cursor - current_line > static_cast<ptrdiff_t>(current_line_size) ||
         last_char - current_line > static_cast<ptrdiff_t>(current_line_size))
         return 0;
-        
+
     if (log)
         log->Printf ("SBCommandInterpreter(%p)::HandleCompletion (current_line=\"%s\", cursor at: %" PRId64 ", last char at: %" PRId64 ", match_start_point: %d, max_return_elements: %d)",
-                     m_opaque_ptr, current_line, (uint64_t) (cursor - current_line), (uint64_t) (last_char - current_line), match_start_point, max_return_elements);
-                     
+                     static_cast<void*>(m_opaque_ptr), current_line,
+                     static_cast<uint64_t>(cursor - current_line),
+                     static_cast<uint64_t>(last_char - current_line),
+                     match_start_point, max_return_elements);
+
     if (m_opaque_ptr)
     {
         lldb_private::StringList lldb_matches;
@@ -194,8 +202,9 @@
         matches.AppendList (temp_list);
     }
     if (log)
-        log->Printf ("SBCommandInterpreter(%p)::HandleCompletion - Found %d completions.", m_opaque_ptr, num_completions);
-        
+        log->Printf ("SBCommandInterpreter(%p)::HandleCompletion - Found %d completions.",
+                     static_cast<void*>(m_opaque_ptr), num_completions);
+
     return num_completions;
 }
 
@@ -254,9 +263,9 @@
 
     if (log)
         log->Printf ("SBCommandInterpreter(%p)::GetProcess () => SBProcess(%p)", 
-                     m_opaque_ptr, process_sp.get());
+                     static_cast<void*>(m_opaque_ptr),
+                     static_cast<void*>(process_sp.get()));
 
-    
     return sb_process;
 }
 
@@ -267,12 +276,12 @@
     if (m_opaque_ptr)
         sb_debugger.reset(m_opaque_ptr->GetDebugger().shared_from_this());
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
         log->Printf ("SBCommandInterpreter(%p)::GetDebugger () => SBDebugger(%p)",
-                     m_opaque_ptr, sb_debugger.get());
-    
-    
+                     static_cast<void*>(m_opaque_ptr),
+                     static_cast<void*>(sb_debugger.get()));
+
     return sb_debugger;
 }
 
@@ -316,8 +325,8 @@
 
     if (log)
         log->Printf ("SBCommandInterpreter(%p)::SourceInitFileInHomeDirectory (&SBCommandReturnObject(%p))", 
-                     m_opaque_ptr, result.get());
-
+                     static_cast<void*>(m_opaque_ptr),
+                     static_cast<void*>(result.get()));
 }
 
 void
@@ -341,7 +350,8 @@
 
     if (log)
         log->Printf ("SBCommandInterpreter(%p)::SourceInitFileInCurrentWorkingDirectory (&SBCommandReturnObject(%p))", 
-                     m_opaque_ptr, result.get());
+                     static_cast<void*>(m_opaque_ptr),
+                     static_cast<void*>(result.get()));
 }
 
 SBBroadcaster
@@ -353,7 +363,7 @@
 
     if (log)
         log->Printf ("SBCommandInterpreter(%p)::GetBroadcaster() => SBBroadcaster(%p)", 
-                     m_opaque_ptr, broadcaster.get());
+                     static_cast<void*>(m_opaque_ptr), static_cast<void*>(broadcaster.get()));
 
     return broadcaster;
 }
diff --git a/lldb/source/API/SBCommandReturnObject.cpp b/lldb/source/API/SBCommandReturnObject.cpp
index 83d6563..1ae2df7 100644
--- a/lldb/source/API/SBCommandReturnObject.cpp
+++ b/lldb/source/API/SBCommandReturnObject.cpp
@@ -75,14 +75,16 @@
     if (m_opaque_ap.get())
     {
         if (log)
-            log->Printf ("SBCommandReturnObject(%p)::GetOutput () => \"%s\"", m_opaque_ap.get(), 
+            log->Printf ("SBCommandReturnObject(%p)::GetOutput () => \"%s\"",
+                         static_cast<void*>(m_opaque_ap.get()),
                          m_opaque_ap->GetOutputData());
 
         return m_opaque_ap->GetOutputData();
     }
 
     if (log)
-        log->Printf ("SBCommandReturnObject(%p)::GetOutput () => NULL", m_opaque_ap.get());
+        log->Printf ("SBCommandReturnObject(%p)::GetOutput () => NULL",
+                     static_cast<void*>(m_opaque_ap.get()));
 
     return NULL;
 }
@@ -95,14 +97,16 @@
     if (m_opaque_ap.get())
     {
         if (log)
-            log->Printf ("SBCommandReturnObject(%p)::GetError () => \"%s\"", m_opaque_ap.get(),
+            log->Printf ("SBCommandReturnObject(%p)::GetError () => \"%s\"",
+                         static_cast<void*>(m_opaque_ap.get()),
                          m_opaque_ap->GetErrorData());
 
         return m_opaque_ap->GetErrorData();
     }
-    
+
     if (log)
-        log->Printf ("SBCommandReturnObject(%p)::GetError () => NULL", m_opaque_ap.get());
+        log->Printf ("SBCommandReturnObject(%p)::GetError () => NULL",
+                     static_cast<void*>(m_opaque_ap.get()));
 
     return NULL;
 }
diff --git a/lldb/source/API/SBCommunication.cpp b/lldb/source/API/SBCommunication.cpp
index 10feae5..a29f735 100644
--- a/lldb/source/API/SBCommunication.cpp
+++ b/lldb/source/API/SBCommunication.cpp
@@ -32,7 +32,8 @@
 
     if (log)
         log->Printf ("SBCommunication::SBCommunication (broadcaster_name=\"%s\") => "
-                     "SBCommunication(%p)", broadcaster_name, m_opaque);
+                     "SBCommunication(%p)", broadcaster_name,
+                     static_cast<void*>(m_opaque));
 }
 
 SBCommunication::~SBCommunication()
@@ -97,8 +98,9 @@
     }
 
     if (log)
-        log->Printf ("SBCommunication(%p)::AdoptFileDescriptor (fd=%d, ownd_fd=%i) => %s", 
-                     m_opaque, fd, owns_fd, Communication::ConnectionStatusAsCString (status));
+        log->Printf ("SBCommunication(%p)::AdoptFileDescriptor (fd=%d, ownd_fd=%i) => %s",
+                     static_cast<void*>(m_opaque), fd, owns_fd,
+                     Communication::ConnectionStatusAsCString (status));
 
     return status;
 }
@@ -114,7 +116,8 @@
         status = m_opaque->Disconnect ();
 
     if (log)
-        log->Printf ("SBCommunication(%p)::Disconnect () => %s", m_opaque,
+        log->Printf ("SBCommunication(%p)::Disconnect () => %s",
+                     static_cast<void*>(m_opaque),
                      Communication::ConnectionStatusAsCString (status));
 
     return status;
@@ -129,7 +132,8 @@
         result = m_opaque->IsConnected ();
 
     if (log)
-        log->Printf ("SBCommunication(%p)::IsConnected () => %i", m_opaque, result);
+        log->Printf ("SBCommunication(%p)::IsConnected () => %i",
+                     static_cast<void*>(m_opaque), result);
 
     return false;
 }
@@ -140,10 +144,8 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
         log->Printf ("SBCommunication(%p)::Read (dst=%p, dst_len=%" PRIu64 ", timeout_usec=%u, &status)...",
-                     m_opaque,
-                     dst,
-                     (uint64_t)dst_len,
-                     timeout_usec);
+                     static_cast<void*>(m_opaque), static_cast<void*>(dst),
+                     static_cast<uint64_t>(dst_len), timeout_usec);
     size_t bytes_read = 0;
     if (m_opaque)
         bytes_read = m_opaque->Read (dst, dst_len, timeout_usec, status, NULL);
@@ -152,12 +154,10 @@
 
     if (log)
         log->Printf ("SBCommunication(%p)::Read (dst=%p, dst_len=%" PRIu64 ", timeout_usec=%u, &status=%s) => %" PRIu64,
-                     m_opaque,
-                     dst,
-                     (uint64_t)dst_len,
-                     timeout_usec,
+                     static_cast<void*>(m_opaque), static_cast<void*>(dst),
+                     static_cast<uint64_t>(dst_len), timeout_usec,
                      Communication::ConnectionStatusAsCString (status),
-                     (uint64_t)bytes_read);
+                     static_cast<uint64_t>(bytes_read));
     return bytes_read;
 }
 
@@ -174,7 +174,10 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
         log->Printf ("SBCommunication(%p)::Write (src=%p, src_len=%" PRIu64 ", &status=%s) => %" PRIu64,
-                     m_opaque, src, (uint64_t)src_len, Communication::ConnectionStatusAsCString (status), (uint64_t)bytes_written);
+                     static_cast<void*>(m_opaque), static_cast<const void*>(src),
+                     static_cast<uint64_t>(src_len),
+                     Communication::ConnectionStatusAsCString (status),
+                     static_cast<uint64_t>(bytes_written));
 
     return 0;
 }
@@ -189,7 +192,8 @@
         success = m_opaque->StartReadThread ();
 
     if (log)
-        log->Printf ("SBCommunication(%p)::ReadThreadStart () => %i", m_opaque, success);
+        log->Printf ("SBCommunication(%p)::ReadThreadStart () => %i",
+                     static_cast<void*>(m_opaque), success);
 
     return success;
 }
@@ -200,14 +204,16 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBCommunication(%p)::ReadThreadStop ()...", m_opaque);
+        log->Printf ("SBCommunication(%p)::ReadThreadStop ()...",
+                     static_cast<void*>(m_opaque));
 
     bool success = false;
     if (m_opaque)
         success = m_opaque->StopReadThread ();
 
     if (log)
-        log->Printf ("SBCommunication(%p)::ReadThreadStop () => %i", m_opaque, success);
+        log->Printf ("SBCommunication(%p)::ReadThreadStop () => %i",
+                     static_cast<void*>(m_opaque), success);
 
     return success;
 }
@@ -220,7 +226,8 @@
         result = m_opaque->ReadThreadIsRunning ();
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBCommunication(%p)::ReadThreadIsRunning () => %i", m_opaque, result);
+        log->Printf ("SBCommunication(%p)::ReadThreadIsRunning () => %i",
+                     static_cast<void*>(m_opaque), result);
     return result;
 }
 
@@ -242,7 +249,9 @@
 
     if (log)
         log->Printf ("SBCommunication(%p)::SetReadThreadBytesReceivedCallback (callback=%p, baton=%p) => %i",
-                     m_opaque, callback, callback_baton, result);
+                     static_cast<void*>(m_opaque),
+                     reinterpret_cast<void*>(callback),
+                     static_cast<void*>(callback_baton), result);
 
     return result;
 }
@@ -256,7 +265,8 @@
 
     if (log)
         log->Printf ("SBCommunication(%p)::GetBroadcaster () => SBBroadcaster (%p)",
-                     m_opaque, broadcaster.get());
+                     static_cast<void*>(m_opaque),
+                     static_cast<void*>(broadcaster.get()));
 
     return broadcaster;
 }
diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp
index 9f74877..03c2571 100644
--- a/lldb/source/API/SBCompileUnit.cpp
+++ b/lldb/source/API/SBCompileUnit.cpp
@@ -87,13 +87,14 @@
                 sb_line_entry.SetLineEntry(line_entry);
         }
     }
-    
+
     if (log)
     {
         SBStream sstr;
         sb_line_entry.GetDescription (sstr);
-        log->Printf ("SBCompileUnit(%p)::GetLineEntryAtIndex (idx=%u) => SBLineEntry(%p): '%s'", 
-                     m_opaque_ptr, idx, sb_line_entry.get(), sstr.GetData());
+        log->Printf ("SBCompileUnit(%p)::GetLineEntryAtIndex (idx=%u) => SBLineEntry(%p): '%s'",
+                     static_cast<void*>(m_opaque_ptr), idx,
+                     static_cast<void*>(sb_line_entry.get()), sstr.GetData());
     }
 
     return sb_line_entry;
@@ -120,7 +121,6 @@
         else
             file_spec = *m_opaque_ptr;
 
-        
         index = m_opaque_ptr->FindLineEntry (start_idx,
                                              line,
                                              inline_file_spec ? inline_file_spec->get() : NULL,
@@ -133,13 +133,20 @@
         SBStream sstr;
         if (index == UINT32_MAX)
         {
-            log->Printf ("SBCompileUnit(%p)::FindLineEntryIndex (start_idx=%u, line=%u, SBFileSpec(%p)) => NOT FOUND", 
-                         m_opaque_ptr, start_idx, line, inline_file_spec ? inline_file_spec->get() : NULL);
+            log->Printf ("SBCompileUnit(%p)::FindLineEntryIndex (start_idx=%u, line=%u, SBFileSpec(%p)) => NOT FOUND",
+                         static_cast<void*>(m_opaque_ptr), start_idx, line,
+                         inline_file_spec
+                            ? static_cast<const void*>(inline_file_spec->get())
+                            : NULL);
         }
         else
         {
-            log->Printf ("SBCompileUnit(%p)::FindLineEntryIndex (start_idx=%u, line=%u, SBFileSpec(%p)) => %u", 
-                         m_opaque_ptr, start_idx, line, inline_file_spec ? inline_file_spec->get() : NULL, index);
+            log->Printf ("SBCompileUnit(%p)::FindLineEntryIndex (start_idx=%u, line=%u, SBFileSpec(%p)) => %u",
+                         static_cast<void*>(m_opaque_ptr), start_idx, line,
+                         inline_file_spec
+                            ? static_cast<const void*>(inline_file_spec->get())
+                            : NULL,
+                         index);
         }
     }
 
@@ -196,13 +203,15 @@
         FileSpec file_spec = support_files.GetFileSpecAtIndex(idx);
         sb_file_spec.SetFileSpec(file_spec);
     }
-    
+
     if (log)
     {
         SBStream sstr;
         sb_file_spec.GetDescription (sstr);
-        log->Printf ("SBCompileUnit(%p)::GetGetFileSpecAtIndex (idx=%u) => SBFileSpec(%p): '%s'", 
-                     m_opaque_ptr, idx, sb_file_spec.get(), sstr.GetData());
+        log->Printf ("SBCompileUnit(%p)::GetGetFileSpecAtIndex (idx=%u) => SBFileSpec(%p): '%s'",
+                     static_cast<void*>(m_opaque_ptr), idx,
+                     static_cast<const void*>(sb_file_spec.get()),
+                     sstr.GetData());
     }
 
     return sb_file_spec;
diff --git a/lldb/source/API/SBData.cpp b/lldb/source/API/SBData.cpp
index a284d02..40bd71e 100644
--- a/lldb/source/API/SBData.cpp
+++ b/lldb/source/API/SBData.cpp
@@ -167,8 +167,8 @@
             error.SetErrorString("unable to read data");
     }
     if (log)
-        log->Printf ("SBData::GetFloat (error=%p,offset=%" PRIu64 ") => "
-                     "(%f)", error.get(), offset, value);
+        log->Printf ("SBData::GetFloat (error=%p,offset=%" PRIu64 ") => (%f)",
+                     static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -190,7 +190,7 @@
     }
     if (log)
         log->Printf ("SBData::GetDouble (error=%p,offset=%" PRIu64 ") => "
-                     "(%f)", error.get(), offset, value);
+                     "(%f)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -212,7 +212,7 @@
     }
     if (log)
         log->Printf ("SBData::GetLongDouble (error=%p,offset=%" PRIu64 ") => "
-                     "(%Lf)", error.get(), offset, value);
+                     "(%Lf)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -234,7 +234,8 @@
     }
     if (log)
         log->Printf ("SBData::GetAddress (error=%p,offset=%" PRIu64 ") => "
-                     "(%p)", error.get(), offset, (void*)value);
+                     "(%p)", static_cast<void*>(error.get()), offset,
+                     reinterpret_cast<void*>(value));
     return value;
 }
 
@@ -256,7 +257,7 @@
     }
     if (log)
         log->Printf ("SBData::GetUnsignedInt8 (error=%p,offset=%" PRIu64 ") => "
-                     "(%c)", error.get(), offset, value);
+                     "(%c)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -278,7 +279,7 @@
     }
     if (log)
         log->Printf ("SBData::GetUnsignedInt16 (error=%p,offset=%" PRIu64 ") => "
-                     "(%hd)", error.get(), offset, value);
+                     "(%hd)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -300,7 +301,7 @@
     }
     if (log)
         log->Printf ("SBData::GetUnsignedInt32 (error=%p,offset=%" PRIu64 ") => "
-                     "(%d)", error.get(), offset, value);
+                     "(%d)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -322,7 +323,8 @@
     }
     if (log)
         log->Printf ("SBData::GetUnsignedInt64 (error=%p,offset=%" PRIu64 ") => "
-                     "(%" PRId64 ")", error.get(), offset, value);
+                     "(%" PRId64 ")", static_cast<void*>(error.get()), offset,
+                     value);
     return value;
 }
 
@@ -344,7 +346,7 @@
     }
     if (log)
         log->Printf ("SBData::GetSignedInt8 (error=%p,offset=%" PRIu64 ") => "
-                     "(%c)", error.get(), offset, value);
+                     "(%c)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -366,7 +368,7 @@
     }
     if (log)
         log->Printf ("SBData::GetSignedInt16 (error=%p,offset=%" PRIu64 ") => "
-                     "(%hd)", error.get(), offset, value);
+                     "(%hd)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -388,7 +390,7 @@
     }
     if (log)
         log->Printf ("SBData::GetSignedInt32 (error=%p,offset=%" PRIu64 ") => "
-                     "(%d)", error.get(), offset, value);
+                     "(%d)", static_cast<void*>(error.get()), offset, value);
     return value;
 }
 
@@ -410,7 +412,8 @@
     }
     if (log)
         log->Printf ("SBData::GetSignedInt64 (error=%p,offset=%" PRIu64 ") => "
-                     "(%" PRId64 ")", error.get(), offset, value);
+                     "(%" PRId64 ")", static_cast<void*>(error.get()), offset,
+                     value);
     return value;
 }
 
@@ -431,8 +434,9 @@
             error.SetErrorString("unable to read data");
     }
     if (log)
-        log->Printf ("SBData::GetString (error=%p,offset=%" PRIu64 ") => "
-                     "(%p)", error.get(), offset, value);
+        log->Printf ("SBData::GetString (error=%p,offset=%" PRIu64 ") => (%p)",
+                     static_cast<void*>(error.get()), offset,
+                     static_cast<const void*>(value));
     return value;
 }
 
@@ -480,7 +484,9 @@
     }
     if (log)
         log->Printf("SBData::ReadRawData (error=%p,offset=%" PRIu64 ",buf=%p,size=%" PRIu64 ") => "
-                     "(%p)", error.get(), offset, buf, (uint64_t)size, ok);
+                    "(%p)", static_cast<void*>(error.get()), offset,
+                    static_cast<void*>(buf), static_cast<uint64_t>(size),
+                    static_cast<void*>(ok));
     return ok ? size : 0;
 }
 
@@ -498,7 +504,9 @@
         m_opaque_sp->SetData(buf, size, endian);
     if (log)
         log->Printf("SBData::SetData (error=%p,buf=%p,size=%" PRIu64 ",endian=%d,addr_size=%c) => "
-                     "(%p)", error.get(), buf, (uint64_t)size, endian, addr_size, m_opaque_sp.get());
+                    "(%p)", static_cast<void*>(error.get()),
+                    static_cast<const void*>(buf), static_cast<uint64_t>(size),
+                    endian, addr_size, static_cast<void*>(m_opaque_sp.get()));
 }
 
 bool
@@ -509,8 +517,8 @@
     if (m_opaque_sp.get() && rhs.m_opaque_sp.get())
         value = m_opaque_sp.get()->Append(*rhs.m_opaque_sp);
     if (log)
-        log->Printf ("SBData::Append (rhs=%p) => "
-                     "(%s)", rhs.get(), value ? "true" : "false");
+        log->Printf ("SBData::Append (rhs=%p) => (%s)",
+                     static_cast<void*>(rhs.get()), value ? "true" : "false");
     return value;
 }
 
@@ -614,28 +622,28 @@
 SBData::SetDataFromCString (const char* data)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (!data)
     {
         if (log)
-            log->Printf ("SBData::SetDataFromCString (data=%p) => "
-                         "false", data);
+            log->Printf ("SBData::SetDataFromCString (data=%p) => false",
+                         static_cast<const void*>(data));
         return false;
     }
-    
+
     size_t data_len = strlen(data);
-        
+
     lldb::DataBufferSP buffer_sp(new DataBufferHeap(data, data_len));
-    
+
     if (!m_opaque_sp.get())
         m_opaque_sp.reset(new DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()));
     else
         m_opaque_sp->SetData(buffer_sp);
-    
+
     if (log)
-        log->Printf ("SBData::SetDataFromCString (data=%p) => "
-                     "true", data);
-    
+        log->Printf ("SBData::SetDataFromCString (data=%p) => true",
+                     static_cast<const void*>(data));
+
     return true;
 }
 
@@ -643,28 +651,30 @@
 SBData::SetDataFromUInt64Array (uint64_t* array, size_t array_len)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (!array || array_len == 0)
     {
         if (log)
             log->Printf("SBData::SetDataFromUInt64Array (array=%p, array_len = %" PRIu64 ") => "
-                         "false", array, (uint64_t)array_len);
+                        "false", static_cast<void*>(array),
+                        static_cast<uint64_t>(array_len));
         return false;
     }
 
     size_t data_len = array_len * sizeof(uint64_t);
-    
+
     lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len));
-    
+
     if (!m_opaque_sp.get())
         m_opaque_sp.reset(new DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()));
     else
         m_opaque_sp->SetData(buffer_sp);
-    
+
     if (log)
         log->Printf("SBData::SetDataFromUInt64Array (array=%p, array_len = %" PRIu64 ") => "
-                     "true", array, (uint64_t)array_len);
-    
+                    "true", static_cast<void*>(array),
+                    static_cast<uint64_t>(array_len));
+
     return true;
 }
 
@@ -672,28 +682,30 @@
 SBData::SetDataFromUInt32Array (uint32_t* array, size_t array_len)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (!array || array_len == 0)
     {
         if (log)
             log->Printf("SBData::SetDataFromUInt32Array (array=%p, array_len = %" PRIu64 ") => "
-                         "false", array, (uint64_t)array_len);
+                        "false", static_cast<void*>(array),
+                        static_cast<uint64_t>(array_len));
         return false;
     }
-    
+
     size_t data_len = array_len * sizeof(uint32_t);
-    
+
     lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len));
-    
+
     if (!m_opaque_sp.get())
         m_opaque_sp.reset(new DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()));
     else
         m_opaque_sp->SetData(buffer_sp);
-    
+
     if (log)
         log->Printf("SBData::SetDataFromUInt32Array (array=%p, array_len = %" PRIu64 ") => "
-                     "true", array, (uint64_t)array_len);
-    
+                    "true", static_cast<void*>(array),
+                    static_cast<uint64_t>(array_len));
+
     return true;
 }
 
@@ -701,28 +713,30 @@
 SBData::SetDataFromSInt64Array (int64_t* array, size_t array_len)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (!array || array_len == 0)
     {
         if (log)
             log->Printf("SBData::SetDataFromSInt64Array (array=%p, array_len = %" PRIu64 ") => "
-                         "false", array, (uint64_t)array_len);
+                        "false", static_cast<void*>(array),
+                        static_cast<uint64_t>(array_len));
         return false;
     }
-    
+
     size_t data_len = array_len * sizeof(int64_t);
-    
+
     lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len));
-    
+
     if (!m_opaque_sp.get())
         m_opaque_sp.reset(new DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()));
     else
         m_opaque_sp->SetData(buffer_sp);
-    
+
     if (log)
         log->Printf("SBData::SetDataFromSInt64Array (array=%p, array_len = %" PRIu64 ") => "
-                     "true", array, (uint64_t)array_len);
-    
+                     "true", static_cast<void*>(array),
+                     static_cast<uint64_t>(array_len));
+
     return true;
 }
 
@@ -730,28 +744,30 @@
 SBData::SetDataFromSInt32Array (int32_t* array, size_t array_len)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (!array || array_len == 0)
     {
         if (log)
             log->Printf("SBData::SetDataFromSInt32Array (array=%p, array_len = %" PRIu64 ") => "
-                         "false", array, (uint64_t)array_len);
+                        "false", static_cast<void*>(array),
+                        static_cast<uint64_t>(array_len));
         return false;
     }
-    
+
     size_t data_len = array_len * sizeof(int32_t);
-    
+
     lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len));
-    
+
     if (!m_opaque_sp.get())
         m_opaque_sp.reset(new DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()));
     else
         m_opaque_sp->SetData(buffer_sp);
-    
+
     if (log)
         log->Printf("SBData::SetDataFromSInt32Array (array=%p, array_len = %" PRIu64 ") => "
-                     "true", array, (uint64_t)array_len);
-    
+                    "true", static_cast<void*>(array),
+                    static_cast<uint64_t>(array_len));
+
     return true;
 }
 
@@ -759,27 +775,29 @@
 SBData::SetDataFromDoubleArray (double* array, size_t array_len)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (!array || array_len == 0)
     {
         if (log)
             log->Printf("SBData::SetDataFromDoubleArray (array=%p, array_len = %" PRIu64 ") => "
-                         "false", array, (uint64_t)array_len);
+                        "false", static_cast<void*>(array),
+                        static_cast<uint64_t>(array_len));
         return false;
     }
-    
+
     size_t data_len = array_len * sizeof(double);
-    
+
     lldb::DataBufferSP buffer_sp(new DataBufferHeap(array, data_len));
-    
+
     if (!m_opaque_sp.get())
         m_opaque_sp.reset(new DataExtractor(buffer_sp, GetByteOrder(), GetAddressByteSize()));
     else
         m_opaque_sp->SetData(buffer_sp);
-    
+
     if (log)
         log->Printf("SBData::SetDataFromDoubleArray (array=%p, array_len = %" PRIu64 ") => "
-                     "true", array, (uint64_t)array_len);
-    
+                    "true", static_cast<void*>(array),
+                    static_cast<uint64_t>(array_len));
+
     return true;
 }
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 8d6887a..7b5b6e3 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -131,8 +131,9 @@
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBDebugger(%p)::Clear ()", m_opaque_sp.get());
-        
+        log->Printf ("SBDebugger(%p)::Clear ()",
+                     static_cast<void*>(m_opaque_sp.get()));
+
     if (m_opaque_sp)
         m_opaque_sp->ClearIOHandlers ();
 
@@ -164,7 +165,9 @@
     {
         SBStream sstr;
         debugger.GetDescription (sstr);
-        log->Printf ("SBDebugger::Create () => SBDebugger(%p): %s", debugger.m_opaque_sp.get(), sstr.GetData());
+        log->Printf ("SBDebugger::Create () => SBDebugger(%p): %s",
+                     static_cast<void*>(debugger.m_opaque_sp.get()),
+                     sstr.GetData());
     }
 
     SBCommandInterpreter interp = debugger.GetCommandInterpreter();
@@ -187,16 +190,18 @@
 SBDebugger::Destroy (SBDebugger &debugger)
 {
     Log *log (GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
     {
         SBStream sstr;
         debugger.GetDescription (sstr);
-        log->Printf ("SBDebugger::Destroy () => SBDebugger(%p): %s", debugger.m_opaque_sp.get(), sstr.GetData());
+        log->Printf ("SBDebugger::Destroy () => SBDebugger(%p): %s",
+                     static_cast<void*>(debugger.m_opaque_sp.get()),
+                     sstr.GetData());
     }
-    
+
     Debugger::Destroy (debugger.m_opaque_sp);
-    
+
     if (debugger.m_opaque_sp.get() != NULL)
         debugger.m_opaque_sp.reset();
 }
@@ -293,8 +298,9 @@
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBDebugger(%p)::SetInputFileHandle (fh=%p, transfer_ownership=%i)", m_opaque_sp.get(),
-                     fh, transfer_ownership);
+        log->Printf ("SBDebugger(%p)::SetInputFileHandle (fh=%p, transfer_ownership=%i)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(fh), transfer_ownership);
 
     if (m_opaque_sp)
         m_opaque_sp->SetInputFileHandle (fh, transfer_ownership);
@@ -307,8 +313,9 @@
 
 
     if (log)
-        log->Printf ("SBDebugger(%p)::SetOutputFileHandle (fh=%p, transfer_ownership=%i)", m_opaque_sp.get(),
-                     fh, transfer_ownership);
+        log->Printf ("SBDebugger(%p)::SetOutputFileHandle (fh=%p, transfer_ownership=%i)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(fh), transfer_ownership);
 
     if (m_opaque_sp)
         m_opaque_sp->SetOutputFileHandle (fh, transfer_ownership);
@@ -321,8 +328,9 @@
 
 
     if (log)
-        log->Printf ("SBDebugger(%p)::SetErrorFileHandle (fh=%p, transfer_ownership=%i)", m_opaque_sp.get(),
-                     fh, transfer_ownership);
+        log->Printf ("SBDebugger(%p)::SetErrorFileHandle (fh=%p, transfer_ownership=%i)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(fh), transfer_ownership);
 
     if (m_opaque_sp)
         m_opaque_sp->SetErrorFileHandle (fh, transfer_ownership);
@@ -389,8 +397,9 @@
         sb_interpreter.reset (&m_opaque_sp->GetCommandInterpreter());
 
     if (log)
-        log->Printf ("SBDebugger(%p)::GetCommandInterpreter () => SBCommandInterpreter(%p)", 
-                     m_opaque_sp.get(), sb_interpreter.get());
+        log->Printf ("SBDebugger(%p)::GetCommandInterpreter () => SBCommandInterpreter(%p)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(sb_interpreter.get()));
 
     return sb_interpreter;
 }
@@ -443,8 +452,9 @@
         sb_listener.reset(&m_opaque_sp->GetListener(), false);
 
     if (log)
-        log->Printf ("SBDebugger(%p)::GetListener () => SBListener(%p)", m_opaque_sp.get(),
-                     sb_listener.get());
+        log->Printf ("SBDebugger(%p)::GetListener () => SBListener(%p)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(sb_listener.get()));
 
     return sb_listener;
 }
@@ -601,14 +611,14 @@
         sb_error.Clear();
         OptionGroupPlatform platform_options (false);
         platform_options.SetPlatformName (platform_name);
-        
+
         sb_error.ref() = m_opaque_sp->GetTargetList().CreateTarget (*m_opaque_sp, 
                                                                     filename, 
                                                                     target_triple, 
                                                                     add_dependent_modules, 
                                                                     &platform_options,
                                                                     target_sp);
-    
+
         if (sb_error.Success())
             sb_target.SetSP (target_sp);
     }
@@ -616,20 +626,14 @@
     {
         sb_error.SetErrorString("invalid target");
     }
-    
+
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::CreateTarget (filename=\"%s\", triple=%s, platform_name=%s, add_dependent_modules=%u, error=%s) => SBTarget(%p)", 
-                     m_opaque_sp.get(), 
-                     filename, 
-                     target_triple,
-                     platform_name,
-                     add_dependent_modules,
-                     sb_error.GetCString(),
-                     target_sp.get());
-    }
-    
+        log->Printf ("SBDebugger(%p)::CreateTarget (filename=\"%s\", triple=%s, platform_name=%s, add_dependent_modules=%u, error=%s) => SBTarget(%p)",
+                     static_cast<void*>(m_opaque_sp.get()), filename,
+                     target_triple, platform_name, add_dependent_modules,
+                     sb_error.GetCString(), static_cast<void*>(target_sp.get()));
+
     return sb_target;
 }
 
@@ -650,13 +654,12 @@
                                                                 target_sp));
         sb_target.SetSP (target_sp);
     }
-    
+
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::CreateTargetWithFileAndTargetTriple (filename=\"%s\", triple=%s) => SBTarget(%p)", 
-                     m_opaque_sp.get(), filename, target_triple, target_sp.get());
-    }
+        log->Printf ("SBDebugger(%p)::CreateTargetWithFileAndTargetTriple (filename=\"%s\", triple=%s) => SBTarget(%p)",
+                     static_cast<void*>(m_opaque_sp.get()), filename,
+                     target_triple, static_cast<void*>(target_sp.get()));
 
     return sb_target;
 }
@@ -688,10 +691,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::CreateTargetWithFileAndArch (filename=\"%s\", arch=%s) => SBTarget(%p)", 
-                     m_opaque_sp.get(), filename, arch_cstr, target_sp.get());
-    }
+        log->Printf ("SBDebugger(%p)::CreateTargetWithFileAndArch (filename=\"%s\", arch=%s) => SBTarget(%p)",
+                     static_cast<void*>(m_opaque_sp.get()), filename, arch_cstr,
+                     static_cast<void*>(target_sp.get()));
 
     return sb_target;
 }
@@ -723,10 +725,9 @@
     }
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::CreateTarget (filename=\"%s\") => SBTarget(%p)", 
-                     m_opaque_sp.get(), filename, target_sp.get());
-    }
+        log->Printf ("SBDebugger(%p)::CreateTarget (filename=\"%s\") => SBTarget(%p)",
+                     static_cast<void*>(m_opaque_sp.get()), filename,
+                     static_cast<void*>(target_sp.get()));
     return sb_target;
 }
 
@@ -750,9 +751,9 @@
 
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::DeleteTarget (SBTarget(%p)) => %i", m_opaque_sp.get(), target.m_opaque_sp.get(), result);
-    }
+        log->Printf ("SBDebugger(%p)::DeleteTarget (SBTarget(%p)) => %i",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(target.m_opaque_sp.get()), result);
 
     return result;
 }
@@ -850,8 +851,9 @@
     {
         SBStream sstr;
         sb_target.GetDescription (sstr, eDescriptionLevelBrief);
-        log->Printf ("SBDebugger(%p)::GetSelectedTarget () => SBTarget(%p): %s", m_opaque_sp.get(),
-                     target_sp.get(), sstr.GetData());
+        log->Printf ("SBDebugger(%p)::GetSelectedTarget () => SBTarget(%p): %s",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(target_sp.get()), sstr.GetData());
     }
 
     return sb_target;
@@ -871,8 +873,9 @@
     {
         SBStream sstr;
         sb_target.GetDescription (sstr, eDescriptionLevelBrief);
-        log->Printf ("SBDebugger(%p)::SetSelectedTarget () => SBTarget(%p): %s", m_opaque_sp.get(),
-                     target_sp.get(), sstr.GetData());
+        log->Printf ("SBDebugger(%p)::SetSelectedTarget () => SBTarget(%p): %s",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(target_sp.get()), sstr.GetData());
     }
 }
 
@@ -888,10 +891,10 @@
         sb_platform.SetSP(debugger_sp->GetPlatformList().GetSelectedPlatform());
     }
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::GetSelectedPlatform () => SBPlatform(%p): %s", m_opaque_sp.get(),
-                     sb_platform.GetSP().get(), sb_platform.GetName());
-    }
+        log->Printf ("SBDebugger(%p)::GetSelectedPlatform () => SBPlatform(%p): %s",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(sb_platform.GetSP().get()),
+                     sb_platform.GetName());
     return sb_platform;
 }
 
@@ -899,17 +902,18 @@
 SBDebugger::SetSelectedPlatform(SBPlatform &sb_platform)
 {
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     DebuggerSP debugger_sp(m_opaque_sp);
     if (debugger_sp)
     {
         debugger_sp->GetPlatformList().SetSelectedPlatform(sb_platform.GetSP());
     }
+
     if (log)
-    {
-        log->Printf ("SBDebugger(%p)::SetSelectedPlatform (SBPlatform(%p) %s)", m_opaque_sp.get(),
-                     sb_platform.GetSP().get(), sb_platform.GetName());
-    }
+        log->Printf ("SBDebugger(%p)::SetSelectedPlatform (SBPlatform(%p) %s)",
+                     static_cast<void*>(m_opaque_sp.get()),
+                     static_cast<void*>(sb_platform.GetSP().get()),
+                     sb_platform.GetName());
 }
 
 void
@@ -1077,9 +1081,10 @@
 SBDebugger::GetPrompt() const
 {
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     if (log)
-        log->Printf ("SBDebugger(%p)::GetPrompt () => \"%s\"", m_opaque_sp.get(), 
+        log->Printf ("SBDebugger(%p)::GetPrompt () => \"%s\"",
+                     static_cast<void*>(m_opaque_sp.get()),
                      (m_opaque_sp ? m_opaque_sp->GetPrompt() : ""));
 
     if (m_opaque_sp)
diff --git a/lldb/source/API/SBDeclaration.cpp b/lldb/source/API/SBDeclaration.cpp
index fc90156..8aea675 100644
--- a/lldb/source/API/SBDeclaration.cpp
+++ b/lldb/source/API/SBDeclaration.cpp
@@ -74,19 +74,21 @@
 SBDeclaration::GetFileSpec () const
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBFileSpec sb_file_spec;
     if (m_opaque_ap.get() && m_opaque_ap->GetFile())
         sb_file_spec.SetFileSpec(m_opaque_ap->GetFile());
-    
+
     if (log)
     {
         SBStream sstr;
         sb_file_spec.GetDescription (sstr);
-        log->Printf ("SBLineEntry(%p)::GetFileSpec () => SBFileSpec(%p): %s", m_opaque_ap.get(),
-                     sb_file_spec.get(), sstr.GetData());
+        log->Printf ("SBLineEntry(%p)::GetFileSpec () => SBFileSpec(%p): %s",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<const void*>(sb_file_spec.get()),
+                     sstr.GetData());
     }
-    
+
     return sb_file_spec;
 }
 
@@ -94,14 +96,15 @@
 SBDeclaration::GetLine () const
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     uint32_t line = 0;
     if (m_opaque_ap.get())
         line = m_opaque_ap->GetLine();
-    
+
     if (log)
-        log->Printf ("SBLineEntry(%p)::GetLine () => %u", m_opaque_ap.get(), line);
-    
+        log->Printf ("SBLineEntry(%p)::GetLine () => %u",
+                     static_cast<void*>(m_opaque_ap.get()), line);
+
     return line;
 }
 
diff --git a/lldb/source/API/SBError.cpp b/lldb/source/API/SBError.cpp
index bd6b543..157997b2 100644
--- a/lldb/source/API/SBError.cpp
+++ b/lldb/source/API/SBError.cpp
@@ -77,7 +77,8 @@
         ret_value = m_opaque_ap->Fail();
 
     if (log)
-        log->Printf ("SBError(%p)::Fail () => %i", m_opaque_ap.get(), ret_value);
+        log->Printf ("SBError(%p)::Fail () => %i",
+                     static_cast<void*>(m_opaque_ap.get()), ret_value);
 
     return ret_value;
 }
@@ -91,7 +92,8 @@
         ret_value = m_opaque_ap->Success();
 
     if (log)
-        log->Printf ("SBError(%p)::Success () => %i", m_opaque_ap.get(), ret_value);
+        log->Printf ("SBError(%p)::Success () => %i",
+                     static_cast<void*>(m_opaque_ap.get()), ret_value);
 
     return ret_value;
 }
@@ -106,7 +108,8 @@
         err = m_opaque_ap->GetError();
 
     if (log)
-        log->Printf ("SBError(%p)::GetError () => 0x%8.8x", m_opaque_ap.get(), err);
+        log->Printf ("SBError(%p)::GetError () => 0x%8.8x",
+                     static_cast<void*>(m_opaque_ap.get()), err);
 
 
     return err;
@@ -121,7 +124,8 @@
         err_type = m_opaque_ap->GetType();
 
     if (log)
-        log->Printf ("SBError(%p)::GetType () => %i", m_opaque_ap.get(), err_type);
+        log->Printf ("SBError(%p)::GetType () => %i",
+                     static_cast<void*>(m_opaque_ap.get()), err_type);
 
     return err_type;
 }
diff --git a/lldb/source/API/SBEvent.cpp b/lldb/source/API/SBEvent.cpp
index d5d4a84..57a699f 100644
--- a/lldb/source/API/SBEvent.cpp
+++ b/lldb/source/API/SBEvent.cpp
@@ -92,9 +92,11 @@
     {
         StreamString sstr;
         if (lldb_event && lldb_event->GetBroadcaster() && lldb_event->GetBroadcaster()->GetEventNames(sstr, event_type, true))
-            log->Printf ("SBEvent(%p)::GetType () => 0x%8.8x (%s)", get(), event_type, sstr.GetData());
+            log->Printf ("SBEvent(%p)::GetType () => 0x%8.8x (%s)",
+                         static_cast<void*>(get()), event_type, sstr.GetData());
         else
-            log->Printf ("SBEvent(%p)::GetType () => 0x%8.8x", get(), event_type);
+            log->Printf ("SBEvent(%p)::GetType () => 0x%8.8x",
+                         static_cast<void*>(get()), event_type);
 
     }
 
@@ -141,11 +143,10 @@
     // For logging, this gets a little chatty so only enable this when verbose logging is on
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API | LIBLLDB_LOG_VERBOSE));
     if (log)
-        log->Printf ("SBEvent(%p)::BroadcasterMatchesRef (SBBroadcaster(%p): %s) => %i", 
-                     get(),
-                     broadcaster.get(),
-                     broadcaster.GetName(),
-                     success);
+        log->Printf ("SBEvent(%p)::BroadcasterMatchesRef (SBBroadcaster(%p): %s) => %i",
+                     static_cast<void*>(get()),
+                     static_cast<void*>(broadcaster.get()),
+                     broadcaster.GetName(), success);
 
     return success;
 }
@@ -206,8 +207,8 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBEvent(%p)::GetCStringFromEvent () => \"%s\"", 
-                     event.get(), 
+        log->Printf ("SBEvent(%p)::GetCStringFromEvent () => \"%s\"",
+                     static_cast<void*>(event.get()),
                      reinterpret_cast<const char *>(EventDataBytes::GetBytesFromEvent (event.get())));
 
     return reinterpret_cast<const char *>(EventDataBytes::GetBytesFromEvent (event.get()));
diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp
index 4fd2866..e5a3f6d 100644
--- a/lldb/source/API/SBFileSpec.cpp
+++ b/lldb/source/API/SBFileSpec.cpp
@@ -72,7 +72,9 @@
     bool result = m_opaque_ap->Exists();
 
     if (log)
-        log->Printf ("SBFileSpec(%p)::Exists () => %s", m_opaque_ap.get(), (result ? "true" : "false"));
+        log->Printf ("SBFileSpec(%p)::Exists () => %s",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     (result ? "true" : "false"));
 
     return result;
 }
@@ -98,9 +100,11 @@
     if (log)
     {
         if (s)
-            log->Printf ("SBFileSpec(%p)::GetFilename () => \"%s\"", m_opaque_ap.get(), s);
+            log->Printf ("SBFileSpec(%p)::GetFilename () => \"%s\"",
+                         static_cast<void*>(m_opaque_ap.get()), s);
         else
-            log->Printf ("SBFileSpec(%p)::GetFilename () => NULL", m_opaque_ap.get());
+            log->Printf ("SBFileSpec(%p)::GetFilename () => NULL",
+                         static_cast<void*>(m_opaque_ap.get()));
     }
 
     return s;
@@ -114,9 +118,11 @@
     if (log)
     {
         if (s)
-            log->Printf ("SBFileSpec(%p)::GetDirectory () => \"%s\"", m_opaque_ap.get(), s);
+            log->Printf ("SBFileSpec(%p)::GetDirectory () => \"%s\"",
+                         static_cast<void*>(m_opaque_ap.get()), s);
         else
-            log->Printf ("SBFileSpec(%p)::GetDirectory () => NULL", m_opaque_ap.get());
+            log->Printf ("SBFileSpec(%p)::GetDirectory () => NULL",
+                         static_cast<void*>(m_opaque_ap.get()));
     }
     return s;
 }
@@ -148,7 +154,8 @@
 
     if (log)
         log->Printf ("SBFileSpec(%p)::GetPath (dst_path=\"%.*s\", dst_len=%" PRIu64 ") => %u",
-                     m_opaque_ap.get(), result, dst_path, (uint64_t)dst_len, result);
+                     static_cast<void*>(m_opaque_ap.get()), result, dst_path,
+                     static_cast<uint64_t>(dst_len), result);
 
     if (result == 0 && dst_path && dst_len > 0)
         *dst_path = '\0';
diff --git a/lldb/source/API/SBFileSpecList.cpp b/lldb/source/API/SBFileSpecList.cpp
index 3ebf3cc..a457a75 100644
--- a/lldb/source/API/SBFileSpecList.cpp
+++ b/lldb/source/API/SBFileSpecList.cpp
@@ -38,7 +38,8 @@
     if (log)
     {
         log->Printf ("SBFileSpecList::SBFileSpecList (const SBFileSpecList rhs.ap=%p) => SBFileSpecList(%p)",
-                     rhs.m_opaque_ap.get(), m_opaque_ap.get());
+                     static_cast<void*>(rhs.m_opaque_ap.get()),
+                     static_cast<void*>(m_opaque_ap.get()));
     }
 }
 
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp
index 44fc654..8448bd2 100644
--- a/lldb/source/API/SBFrame.cpp
+++ b/lldb/source/API/SBFrame.cpp
@@ -63,9 +63,9 @@
     {
         SBStream sstr;
         GetDescription (sstr);
-        log->Printf ("SBFrame::SBFrame (sp=%p) => SBFrame(%p): %s", 
-                     lldb_object_sp.get(), lldb_object_sp.get(), sstr.GetData());
-                     
+        log->Printf ("SBFrame::SBFrame (sp=%p) => SBFrame(%p): %s",
+                     static_cast<void*>(lldb_object_sp.get()),
+                     static_cast<void*>(lldb_object_sp.get()), sstr.GetData());
     }
 }
 
@@ -141,8 +141,9 @@
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::GetSymbolContext (resolve_scope=0x%8.8x) => SBSymbolContext(%p)", 
-                     frame, resolve_scope, sb_sym_ctx.get());
+        log->Printf ("SBFrame(%p)::GetSymbolContext (resolve_scope=0x%8.8x) => SBSymbolContext(%p)",
+                     static_cast<void*>(frame), resolve_scope,
+                     static_cast<void*>(sb_sym_ctx.get()));
 
     return sb_sym_ctx;
 }
@@ -184,8 +185,9 @@
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::GetModule () => SBModule(%p)", 
-                     frame, module_sp.get());
+        log->Printf ("SBFrame(%p)::GetModule () => SBModule(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(module_sp.get()));
 
     return sb_module;
 }
@@ -224,8 +226,9 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetCompileUnit () => SBCompileUnit(%p)", 
-                     frame, sb_comp_unit.get());
+        log->Printf ("SBFrame(%p)::GetCompileUnit () => SBCompileUnit(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_comp_unit.get()));
 
     return sb_comp_unit;
 }
@@ -264,8 +267,9 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetFunction () => SBFunction(%p)", 
-                     frame, sb_function.get());
+        log->Printf ("SBFrame(%p)::GetFunction () => SBFunction(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_function.get()));
 
     return sb_function;
 }
@@ -304,8 +308,9 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetSymbol () => SBSymbol(%p)", 
-                     frame, sb_symbol.get());
+        log->Printf ("SBFrame(%p)::GetSymbol () => SBSymbol(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_symbol.get()));
     return sb_symbol;
 }
 
@@ -339,12 +344,14 @@
         else
         {
             if (log)
-                log->Printf ("SBFrame(%p)::GetBlock () => error: process is running", frame);
+                log->Printf ("SBFrame(%p)::GetBlock () => error: process is running",
+                             static_cast<void*>(frame));
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetBlock () => SBBlock(%p)", 
-                     frame, sb_block.GetPtr());
+        log->Printf ("SBFrame(%p)::GetBlock () => SBBlock(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_block.GetPtr()));
     return sb_block;
 }
 
@@ -382,8 +389,9 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetFrameBlock () => SBBlock(%p)", 
-                     frame, sb_block.GetPtr());
+        log->Printf ("SBFrame(%p)::GetFrameBlock () => SBBlock(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_block.GetPtr()));
     return sb_block;    
 }
 
@@ -421,8 +429,9 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetLineEntry () => SBLineEntry(%p)", 
-                     frame, sb_line_entry.get());
+        log->Printf ("SBFrame(%p)::GetLineEntry () => SBLineEntry(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_line_entry.get()));
     return sb_line_entry;
 }
 
@@ -430,16 +439,16 @@
 SBFrame::GetFrameID () const
 {
     uint32_t frame_idx = UINT32_MAX;
-    
+
     ExecutionContext exe_ctx(m_opaque_sp.get());
     StackFrame *frame = exe_ctx.GetFramePtr();
     if (frame)
         frame_idx = frame->GetFrameIndex ();
-    
+
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBFrame(%p)::GetFrameID () => %u", 
-                     frame, frame_idx);
+        log->Printf ("SBFrame(%p)::GetFrameID () => %u",
+                     static_cast<void*>(frame), frame_idx);
     return frame_idx;
 }
 
@@ -478,7 +487,8 @@
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::GetPC () => 0x%" PRIx64, frame, addr);
+        log->Printf ("SBFrame(%p)::GetPC () => 0x%" PRIx64,
+                     static_cast<void*>(frame), addr);
 
     return addr;
 }
@@ -519,7 +529,7 @@
 
     if (log)
         log->Printf ("SBFrame(%p)::SetPC (new_pc=0x%" PRIx64 ") => %i",
-                     frame, new_pc, ret_val);
+                     static_cast<void*>(frame), new_pc, ret_val);
 
     return ret_val;
 }
@@ -558,7 +568,8 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetSP () => 0x%" PRIx64, frame, addr);
+        log->Printf ("SBFrame(%p)::GetSP () => 0x%" PRIx64,
+                     static_cast<void*>(frame), addr);
 
     return addr;
 }
@@ -599,7 +610,8 @@
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::GetFP () => 0x%" PRIx64, frame, addr);
+        log->Printf ("SBFrame(%p)::GetFP () => 0x%" PRIx64,
+                     static_cast<void*>(frame), addr);
     return addr;
 }
 
@@ -638,7 +650,9 @@
         }
     }
     if (log)
-        log->Printf ("SBFrame(%p)::GetPCAddress () => SBAddress(%p)", frame, sb_addr.get());
+        log->Printf ("SBFrame(%p)::GetPCAddress () => SBAddress(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(sb_addr.get()));
     return sb_addr;
 }
 
@@ -727,7 +741,6 @@
     }
     return value;
 }
-                                    
 
 SBValue
 SBFrame::FindVariable (const char *name, lldb::DynamicValueType use_dynamic)
@@ -742,7 +755,7 @@
             log->Printf ("SBFrame::FindVariable called with empty name");
         return sb_value;
     }
-    
+
     ValueObjectSP value_sp;
     Mutex::Locker api_locker;
     ExecutionContext exe_ctx (m_opaque_sp.get(), api_locker);
@@ -766,7 +779,7 @@
                     const bool can_create = true;
                     const bool get_parent_variables = true;
                     const bool stop_if_block_is_inlined_function = true;
-                    
+
                     if (sc.block->AppendVariables (can_create, 
                                                    get_parent_variables,
                                                    stop_if_block_is_inlined_function,
@@ -794,10 +807,11 @@
                 log->Printf ("SBFrame::FindVariable () => error: process is running");
         }
     }
-    
+
     if (log)
-        log->Printf ("SBFrame(%p)::FindVariable (name=\"%s\") => SBValue(%p)", 
-                     frame, name, value_sp.get());
+        log->Printf ("SBFrame(%p)::FindVariable (name=\"%s\") => SBValue(%p)",
+                     static_cast<void*>(frame), name,
+                     static_cast<void*>(value_sp.get()));
 
     return sb_value;
 }
@@ -822,14 +836,14 @@
 {
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     SBValue sb_value;
-    
+
     if (name == NULL || name[0] == '\0')
     {
         if (log)
             log->Printf ("SBFrame::FindValue called with empty name.");
         return sb_value;
     }
-    
+
     ValueObjectSP value_sp;
     Mutex::Locker api_locker;
     ExecutionContext exe_ctx (m_opaque_sp.get(), api_locker);
@@ -846,7 +860,7 @@
             if (frame)
             {
                 VariableList variable_list;
-                
+
                 switch (value_type)
                 {
                 case eValueTypeVariableGlobal:      // global variable
@@ -854,7 +868,6 @@
                 case eValueTypeVariableArgument:    // function argument variables
                 case eValueTypeVariableLocal:       // function local variables
                     {
-                        
                         SymbolContext sc (frame->GetSymbolContext (eSymbolContextBlock));
 
                         const bool can_create = true;
@@ -957,12 +970,12 @@
                 log->Printf ("SBFrame::FindValue () => error: process is running");
         }
     }
-    
-    if (log)
-        log->Printf ("SBFrame(%p)::FindVariableInScope (name=\"%s\", value_type=%i) => SBValue(%p)", 
-                     frame, name, value_type, value_sp.get());
 
-    
+    if (log)
+        log->Printf ("SBFrame(%p)::FindVariableInScope (name=\"%s\", value_type=%i) => SBValue(%p)",
+                     static_cast<void*>(frame), name, value_type,
+                     static_cast<void*>(value_sp.get()));
+
     return sb_value;
 }
 
@@ -999,10 +1012,9 @@
     {
         SBStream sstr;
         sb_thread.GetDescription (sstr);
-        log->Printf ("SBFrame(%p)::GetThread () => SBThread(%p): %s", 
-                     exe_ctx.GetFramePtr(), 
-                     thread_sp.get(), 
-                     sstr.GetData());
+        log->Printf ("SBFrame(%p)::GetThread () => SBThread(%p): %s",
+                     static_cast<void*>(exe_ctx.GetFramePtr()),
+                     static_cast<void*>(thread_sp.get()), sstr.GetData());
     }
 
     return sb_thread;
@@ -1039,11 +1051,12 @@
         {
             if (log)
                 log->Printf ("SBFrame::Disassemble () => error: process is running");
-        }            
+        }
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::Disassemble () => %s", frame, disassembly);
+        log->Printf ("SBFrame(%p)::Disassemble () => %s",
+                     static_cast<void*>(frame), disassembly);
 
     return disassembly;
 }
@@ -1084,12 +1097,9 @@
     Target *target = exe_ctx.GetTargetPtr();
 
     if (log)
-        log->Printf ("SBFrame::GetVariables (arguments=%i, locals=%i, statics=%i, in_scope_only=%i)", 
-                     arguments,
-                     locals,
-                     statics,
-                     in_scope_only);
-    
+        log->Printf ("SBFrame::GetVariables (arguments=%i, locals=%i, statics=%i, in_scope_only=%i)",
+                     arguments, locals, statics, in_scope_only);
+
     Process *process = exe_ctx.GetProcessPtr();
     if (target && process)
     {
@@ -1156,13 +1166,13 @@
         {
             if (log)
                 log->Printf ("SBFrame::GetVariables () => error: process is running");
-        }            
+        }
     }
 
     if (log)
-    {
-        log->Printf ("SBFrame(%p)::GetVariables (...) => SBValueList(%p)", frame, value_list.opaque_ptr());
-    }
+        log->Printf ("SBFrame(%p)::GetVariables (...) => SBValueList(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(value_list.opaque_ptr()));
 
     return value_list;
 }
@@ -1207,11 +1217,13 @@
         {
             if (log)
                 log->Printf ("SBFrame::GetRegisters () => error: process is running");
-        }            
+        }
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::GetRegisters () => SBValueList(%p)", frame, value_list.opaque_ptr());
+        log->Printf ("SBFrame(%p)::GetRegisters () => SBValueList(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(value_list.opaque_ptr()));
 
     return value_list;
 }
@@ -1265,11 +1277,13 @@
         {
             if (log)
                 log->Printf ("SBFrame::FindRegister () => error: process is running");
-        }            
+        }
     }
 
     if (log)
-        log->Printf ("SBFrame(%p)::FindRegister () => SBValue(%p)", frame, value_sp.get());
+        log->Printf ("SBFrame(%p)::FindRegister () => SBValue(%p)",
+                     static_cast<void*>(frame),
+                     static_cast<void*>(value_sp.get()));
 
     return result;
 }
@@ -1355,19 +1369,19 @@
 SBFrame::EvaluateExpression (const char *expr, const SBExpressionOptions &options)
 {
     Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     Log *expr_log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
 
     ExecutionResults exe_results = eExecutionSetupError;
     SBValue expr_result;
-    
+
     if (expr == NULL || expr[0] == '\0')
     {
         if (log)
             log->Printf ("SBFrame::EvaluateExpression called with an empty expression");
         return expr_result;
     }
-    
+
     ValueObjectSP expr_value_sp;
 
     Mutex::Locker api_locker;
@@ -1379,7 +1393,7 @@
     StackFrame *frame = NULL;
     Target *target = exe_ctx.GetTargetPtr();
     Process *process = exe_ctx.GetProcessPtr();
-    
+
     if (target && process)
     {
         Process::StopLocker stop_locker;
@@ -1395,7 +1409,7 @@
                     Host::SetCrashDescriptionWithFormat ("SBFrame::EvaluateExpression (expr = \"%s\", fetch_dynamic_value = %u) %s",
                                                          expr, options.GetFetchDynamicValue(), frame_description.GetString().c_str());
                 }
-                
+
                 exe_results = target->EvaluateExpression (expr,
                                                           frame,
                                                           expr_value_sp,
@@ -1415,21 +1429,18 @@
         {
             if (log)
                 log->Printf ("SBFrame::EvaluateExpression () => error: process is running");
-        }            
+        }
     }
 
 #ifndef LLDB_DISABLE_PYTHON
     if (expr_log)
-        expr_log->Printf("** [SBFrame::EvaluateExpression] Expression result is %s, summary %s **", 
-                         expr_result.GetValue(), 
-                         expr_result.GetSummary());
-    
+        expr_log->Printf("** [SBFrame::EvaluateExpression] Expression result is %s, summary %s **",
+                         expr_result.GetValue(), expr_result.GetSummary());
+
     if (log)
-        log->Printf ("SBFrame(%p)::EvaluateExpression (expr=\"%s\") => SBValue(%p) (execution result=%d)", 
-                     frame, 
-                     expr, 
-                     expr_value_sp.get(),
-                     exe_results);
+        log->Printf ("SBFrame(%p)::EvaluateExpression (expr=\"%s\") => SBValue(%p) (execution result=%d)",
+                     static_cast<void*>(frame), expr,
+                     static_cast<void*>(expr_value_sp.get()), exe_results);
 #endif
 
     return expr_result;
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp
index bb7ea2e..3d185da 100644
--- a/lldb/source/API/SBFunction.cpp
+++ b/lldb/source/API/SBFunction.cpp
@@ -66,9 +66,11 @@
     if (log)
     {
         if (cstr)
-            log->Printf ("SBFunction(%p)::GetName () => \"%s\"", m_opaque_ptr, cstr);
+            log->Printf ("SBFunction(%p)::GetName () => \"%s\"",
+                         static_cast<void*>(m_opaque_ptr), cstr);
         else
-            log->Printf ("SBFunction(%p)::GetName () => NULL", m_opaque_ptr);
+            log->Printf ("SBFunction(%p)::GetName () => NULL",
+                         static_cast<void*>(m_opaque_ptr));
     }
     return cstr;
 }
@@ -83,9 +85,11 @@
     if (log)
     {
         if (cstr)
-            log->Printf ("SBFunction(%p)::GetMangledName () => \"%s\"", m_opaque_ptr, cstr);
+            log->Printf ("SBFunction(%p)::GetMangledName () => \"%s\"",
+                         static_cast<void*>(m_opaque_ptr), cstr);
         else
-            log->Printf ("SBFunction(%p)::GetMangledName () => NULL", m_opaque_ptr);
+            log->Printf ("SBFunction(%p)::GetMangledName () => NULL",
+                         static_cast<void*>(m_opaque_ptr));
     }
     return cstr;
 }
diff --git a/lldb/source/API/SBHostOS.cpp b/lldb/source/API/SBHostOS.cpp
index 5f9ba62..06fe5fb 100644
--- a/lldb/source/API/SBHostOS.cpp
+++ b/lldb/source/API/SBHostOS.cpp
@@ -50,8 +50,10 @@
     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?
 
diff --git a/lldb/source/API/SBLineEntry.cpp b/lldb/source/API/SBLineEntry.cpp
index 0864a2e..833eea3 100644
--- a/lldb/source/API/SBLineEntry.cpp
+++ b/lldb/source/API/SBLineEntry.cpp
@@ -66,7 +66,6 @@
 SBAddress
 SBLineEntry::GetStartAddress () const
 {
-
     SBAddress sb_address;
     if (m_opaque_ap.get())
         sb_address.SetAddress(&m_opaque_ap->range.GetBaseAddress());
@@ -78,8 +77,9 @@
         const Address *addr = sb_address.get();
         if (addr)
             addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4);
-        log->Printf ("SBLineEntry(%p)::GetStartAddress () => SBAddress (%p): %s", 
-                     m_opaque_ap.get(), sb_address.get(), sstr.GetData());
+        log->Printf ("SBLineEntry(%p)::GetStartAddress () => SBAddress (%p): %s",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<void*>(sb_address.get()), sstr.GetData());
     }
 
     return sb_address;
@@ -101,8 +101,9 @@
         const Address *addr = sb_address.get();
         if (addr)
             addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4);
-        log->Printf ("SBLineEntry(%p)::GetEndAddress () => SBAddress (%p): %s", 
-                     m_opaque_ap.get(), sb_address.get(), sstr.GetData());
+        log->Printf ("SBLineEntry(%p)::GetEndAddress () => SBAddress (%p): %s",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<void*>(sb_address.get()), sstr.GetData());
     }
     return sb_address;
 }
@@ -127,8 +128,10 @@
     {
         SBStream sstr;
         sb_file_spec.GetDescription (sstr);
-        log->Printf ("SBLineEntry(%p)::GetFileSpec () => SBFileSpec(%p): %s", m_opaque_ap.get(),
-                     sb_file_spec.get(), sstr.GetData());
+        log->Printf ("SBLineEntry(%p)::GetFileSpec () => SBFileSpec(%p): %s",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<const void*>(sb_file_spec.get()),
+                     sstr.GetData());
     }
 
     return sb_file_spec;
@@ -144,7 +147,8 @@
         line = m_opaque_ap->line;
 
     if (log)
-        log->Printf ("SBLineEntry(%p)::GetLine () => %u", m_opaque_ap.get(), line);
+        log->Printf ("SBLineEntry(%p)::GetLine () => %u",
+                     static_cast<void*>(m_opaque_ap.get()), line);
 
     return line;
 }
diff --git a/lldb/source/API/SBListener.cpp b/lldb/source/API/SBListener.cpp
index 2e67b4c..bad9ba8 100644
--- a/lldb/source/API/SBListener.cpp
+++ b/lldb/source/API/SBListener.cpp
@@ -42,7 +42,7 @@
 
     if (log)
         log->Printf ("SBListener::SBListener (name=\"%s\") => SBListener(%p)",
-                     name, m_opaque_ptr);
+                     name, static_cast<void*>(m_opaque_ptr));
 }
 
 
@@ -110,7 +110,7 @@
     else
         return 0;
 }
-                             
+
 bool
 SBListener::StopListeningForEventClass (SBDebugger &debugger,
                             const char *broadcaster_class,
@@ -127,7 +127,7 @@
     else
         return false;
 }
-    
+
 uint32_t
 SBListener::StartListeningForEvents (const SBBroadcaster& broadcaster, uint32_t event_mask)
 {
@@ -136,23 +136,23 @@
     {
         acquired_event_mask = m_opaque_ptr->StartListeningForEvents (broadcaster.get(), event_mask);
     }
-    
+
     Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
     if (log)
     {
         StreamString sstr_requested;
         StreamString sstr_acquired;
-        
+
         Broadcaster *lldb_broadcaster = broadcaster.get();
         if (lldb_broadcaster)
         {
             const bool got_requested_names = lldb_broadcaster->GetEventNames (sstr_requested, event_mask, false);
             const bool got_acquired_names = lldb_broadcaster->GetEventNames (sstr_acquired, acquired_event_mask, false);
             log->Printf ("SBListener(%p)::StartListeneingForEvents (SBBroadcaster(%p): %s, event_mask=0x%8.8x%s%s%s) => 0x%8.8x%s%s%s",
-                         m_opaque_ptr, 
-                         lldb_broadcaster, 
-                         lldb_broadcaster->GetBroadcasterName().GetCString(), 
-                         event_mask, 
+                         static_cast<void*>(m_opaque_ptr),
+                         static_cast<void*>(lldb_broadcaster),
+                         lldb_broadcaster->GetBroadcasterName().GetCString(),
+                         event_mask,
                          got_requested_names ? " (" : "",
                          sstr_requested.GetData(),
                          got_requested_names ? ")" : "",
@@ -163,12 +163,10 @@
         }
         else
         {
-            log->Printf ("SBListener(%p)::StartListeneingForEvents (SBBroadcaster(%p), event_mask=0x%8.8x) => 0x%8.8x", 
-                         m_opaque_ptr, 
-                         lldb_broadcaster, 
-                         event_mask, 
+            log->Printf ("SBListener(%p)::StartListeneingForEvents (SBBroadcaster(%p), event_mask=0x%8.8x) => 0x%8.8x",
+                         static_cast<void*>(m_opaque_ptr),
+                         static_cast<void*>(lldb_broadcaster), event_mask,
                          acquired_event_mask);
-            
         }
     }
 
@@ -194,12 +192,14 @@
         if (timeout_secs == UINT32_MAX)
         {
             log->Printf ("SBListener(%p)::WaitForEvent (timeout_secs=INFINITE, SBEvent(%p))...",
-                         m_opaque_ptr, event.get());
+                         static_cast<void*>(m_opaque_ptr),
+                         static_cast<void*>(event.get()));
         }
         else
         {
             log->Printf ("SBListener(%p)::WaitForEvent (timeout_secs=%d, SBEvent(%p))...",
-                         m_opaque_ptr, timeout_secs, event.get());
+                         static_cast<void*>(m_opaque_ptr), timeout_secs,
+                         static_cast<void*>(event.get()));
         }
     }
     bool success = false;
@@ -226,12 +226,14 @@
         if (timeout_secs == UINT32_MAX)
         {
             log->Printf ("SBListener(%p)::WaitForEvent (timeout_secs=INFINITE, SBEvent(%p)) => %i",
-                         m_opaque_ptr, event.get(), success);
+                         static_cast<void*>(m_opaque_ptr),
+                         static_cast<void*>(event.get()), success);
         }
         else
         {
             log->Printf ("SBListener(%p)::WaitForEvent (timeout_secs=%d, SBEvent(%p)) => %i",
-                         m_opaque_ptr, timeout_secs, event.get(), success);
+                         static_cast<void*>(m_opaque_ptr), timeout_secs,
+                         static_cast<void*>(event.get()), success);
         }
     }
     if (!success)
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index c8543d4..b1e39ff 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -110,10 +110,9 @@
         file_spec.SetFileSpec(module_sp->GetFileSpec());
 
     if (log)
-    {
-        log->Printf ("SBModule(%p)::GetFileSpec () => SBFileSpec(%p)", 
-        module_sp.get(), file_spec.get());
-    }
+        log->Printf ("SBModule(%p)::GetFileSpec () => SBFileSpec(%p)",
+                     static_cast<void*>(module_sp.get()),
+                     static_cast<const void*>(file_spec.get()));
 
     return file_spec;
 }
@@ -122,20 +121,18 @@
 SBModule::GetPlatformFileSpec () const
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBFileSpec file_spec;
     ModuleSP module_sp (GetSP ());
     if (module_sp)
         file_spec.SetFileSpec(module_sp->GetPlatformFileSpec());
-    
+
     if (log)
-    {
-        log->Printf ("SBModule(%p)::GetPlatformFileSpec () => SBFileSpec(%p)", 
-                     module_sp.get(), file_spec.get());
-    }
-    
+        log->Printf ("SBModule(%p)::GetPlatformFileSpec () => SBFileSpec(%p)",
+                     static_cast<void*>(module_sp.get()),
+                     static_cast<const void*>(file_spec.get()));
+
     return file_spec;
-    
 }
 
 bool
@@ -143,22 +140,19 @@
 {
     bool result = false;
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     ModuleSP module_sp (GetSP ());
     if (module_sp)
     {
         module_sp->SetPlatformFileSpec(*platform_file);
         result = true;
     }
-    
+
     if (log)
-    {
-        log->Printf ("SBModule(%p)::SetPlatformFileSpec (SBFileSpec(%p (%s)) => %i", 
-                     module_sp.get(), 
-                     platform_file.get(),
-                     platform_file->GetPath().c_str(),
-                     result);
-    }
+        log->Printf ("SBModule(%p)::SetPlatformFileSpec (SBFileSpec(%p (%s)) => %i",
+                     static_cast<void*>(module_sp.get()),
+                     static_cast<const void*>(platform_file.get()),
+                     platform_file->GetPath().c_str(), result);
     return result;
 }
 
@@ -201,10 +195,12 @@
         {
             StreamString s;
             module_sp->GetUUID().Dump (&s);
-            log->Printf ("SBModule(%p)::GetUUIDBytes () => %s", module_sp.get(), s.GetData());
+            log->Printf ("SBModule(%p)::GetUUIDBytes () => %s",
+                         static_cast<void*>(module_sp.get()), s.GetData());
         }
         else
-            log->Printf ("SBModule(%p)::GetUUIDBytes () => NULL", module_sp.get());
+            log->Printf ("SBModule(%p)::GetUUIDBytes () => NULL",
+                         static_cast<void*>(module_sp.get()));
     }
     return uuid_bytes;
 }
@@ -234,10 +230,12 @@
         {
             StreamString s;
             module_sp->GetUUID().Dump (&s);
-            log->Printf ("SBModule(%p)::GetUUIDString () => %s", module_sp.get(), s.GetData());
+            log->Printf ("SBModule(%p)::GetUUIDString () => %s",
+                         static_cast<void*>(module_sp.get()), s.GetData());
         }
         else
-            log->Printf ("SBModule(%p)::GetUUIDString () => NULL", module_sp.get());
+            log->Printf ("SBModule(%p)::GetUUIDString () => NULL",
+                         static_cast<void*>(module_sp.get()));
     }
     return uuid_c_string;
 }
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp
index 52de0cd..bb5b989 100644
--- a/lldb/source/API/SBProcess.cpp
+++ b/lldb/source/API/SBProcess.cpp
@@ -148,20 +148,17 @@
                          lldb::SBError& error)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    if (log) {
+    if (log)
         log->Printf ("SBProcess(%p)::RemoteLaunch (argv=%p, envp=%p, stdin=%s, stdout=%s, stderr=%s, working-dir=%s, launch_flags=0x%x, stop_at_entry=%i, &error (%p))...",
-                     m_opaque_wp.lock().get(),
-                     argv, 
-                     envp, 
-                     stdin_path ? stdin_path : "NULL", 
-                     stdout_path ? stdout_path : "NULL", 
-                     stderr_path ? stderr_path : "NULL", 
+                     static_cast<void*>(m_opaque_wp.lock().get()),
+                     static_cast<void*>(argv), static_cast<void*>(envp),
+                     stdin_path ? stdin_path : "NULL",
+                     stdout_path ? stdout_path : "NULL",
+                     stderr_path ? stderr_path : "NULL",
                      working_directory ? working_directory : "NULL",
-                     launch_flags, 
-                     stop_at_entry, 
-                     error.get());
-    }
-    
+                     launch_flags, stop_at_entry,
+                     static_cast<void*>(error.get()));
+
     ProcessSP process_sp(GetSP());
     if (process_sp)
     {
@@ -170,7 +167,7 @@
         {
             if (stop_at_entry)
                 launch_flags |= eLaunchFlagStopAtEntry;
-            ProcessLaunchInfo launch_info (stdin_path, 
+            ProcessLaunchInfo launch_info (stdin_path,
                                            stdout_path,
                                            stderr_path,
                                            working_directory,
@@ -193,13 +190,15 @@
     {
         error.SetErrorString ("unable to attach pid");
     }
-    
+
     if (log) {
         SBStream sstr;
         error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::RemoteLaunch (...) => SBError (%p): %s", process_sp.get(), error.get(), sstr.GetData());
+        log->Printf ("SBProcess(%p)::RemoteLaunch (...) => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(error.get()), sstr.GetData());
     }
-    
+
     return error.Success();
 }
 
@@ -214,7 +213,7 @@
         {
             ProcessAttachInfo attach_info;
             attach_info.SetProcessID (pid);
-            error.SetError (process_sp->Attach (attach_info));            
+            error.SetError (process_sp->Attach (attach_info));
         }
         else
         {
@@ -230,7 +229,9 @@
     if (log) {
         SBStream sstr;
         error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::RemoteAttachToProcessWithID (%" PRIu64 ") => SBError (%p): %s", process_sp.get(), pid, error.get(), sstr.GetData());
+        log->Printf ("SBProcess(%p)::RemoteAttachToProcessWithID (%" PRIu64 ") => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()), pid,
+                     static_cast<void*>(error.get()), sstr.GetData());
     }
 
     return error.Success();
@@ -247,14 +248,15 @@
     if (process_sp)
     {
         Process::StopLocker stop_locker;
-        
+
         const bool can_update = stop_locker.TryLock(&process_sp->GetRunLock());
         Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex());
         num_threads = process_sp->GetThreadList().GetSize(can_update);
     }
 
     if (log)
-        log->Printf ("SBProcess(%p)::GetNumThreads () => %d", process_sp.get(), num_threads);
+        log->Printf ("SBProcess(%p)::GetNumThreads () => %d",
+                     static_cast<void*>(process_sp.get()), num_threads);
 
     return num_threads;
 }
@@ -275,9 +277,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBProcess(%p)::GetSelectedThread () => SBThread(%p)", process_sp.get(), thread_sp.get());
-    }
+        log->Printf ("SBProcess(%p)::GetSelectedThread () => SBThread(%p)",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(thread_sp.get()));
 
     return sb_thread;
 }
@@ -286,7 +288,7 @@
 SBProcess::CreateOSPluginThread (lldb::tid_t tid, lldb::addr_t context)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBThread sb_thread;
     ThreadSP thread_sp;
     ProcessSP process_sp(GetSP());
@@ -296,10 +298,12 @@
         thread_sp = process_sp->CreateOSPluginThread(tid, context);
         sb_thread.SetThread (thread_sp);
     }
-    
+
     if (log)
-        log->Printf ("SBProcess(%p)::CreateOSPluginThread (tid=0x%" PRIx64 ", context=0x%" PRIx64 ") => SBThread(%p)", process_sp.get(), tid, context, thread_sp.get());
-    
+        log->Printf ("SBProcess(%p)::CreateOSPluginThread (tid=0x%" PRIx64 ", context=0x%" PRIx64 ") => SBThread(%p)",
+                     static_cast<void*>(process_sp.get()), tid, context,
+                     static_cast<void*>(thread_sp.get()));
+
     return sb_thread;
 }
 
@@ -316,9 +320,11 @@
         target_sp = process_sp->GetTarget().shared_from_this();
         sb_target.SetSP (target_sp);
     }
-    
+
     if (log)
-        log->Printf ("SBProcess(%p)::GetTarget () => SBTarget(%p)", process_sp.get(), target_sp.get());
+        log->Printf ("SBProcess(%p)::GetTarget () => SBTarget(%p)",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(target_sp.get()));
 
     return sb_target;
 }
@@ -336,13 +342,12 @@
         Error error;
         ret_val =  process_sp->PutSTDIN (src, src_len, error);
     }
-    
+
     if (log)
         log->Printf("SBProcess(%p)::PutSTDIN (src=\"%s\", src_len=%" PRIu64 ") => %" PRIu64,
-                     process_sp.get(), 
-                     src, 
-                     (uint64_t) src_len,
-                     (uint64_t) ret_val);
+                     static_cast<void*>(process_sp.get()), src,
+                     static_cast<uint64_t>(src_len),
+                     static_cast<uint64_t>(ret_val));
 
     return ret_val;
 }
@@ -357,15 +362,14 @@
         Error error;
         bytes_read = process_sp->GetSTDOUT (dst, dst_len, error);
     }
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
         log->Printf ("SBProcess(%p)::GetSTDOUT (dst=\"%.*s\", dst_len=%" PRIu64 ") => %" PRIu64,
-                     process_sp.get(),
-                     (int) bytes_read,
-                     dst,
-                     (uint64_t)dst_len,
-                     (uint64_t)bytes_read);
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<int>(bytes_read), dst,
+                     static_cast<uint64_t>(dst_len),
+                     static_cast<uint64_t>(bytes_read));
 
     return bytes_read;
 }
@@ -384,11 +388,10 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
         log->Printf ("SBProcess(%p)::GetSTDERR (dst=\"%.*s\", dst_len=%" PRIu64 ") => %" PRIu64,
-                     process_sp.get(),
-                     (int) bytes_read,
-                     dst,
-                     (uint64_t)dst_len,
-                     (uint64_t)bytes_read);
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<int>(bytes_read), dst,
+                     static_cast<uint64_t>(dst_len),
+                     static_cast<uint64_t>(bytes_read));
 
     return bytes_read;
 }
@@ -403,16 +406,15 @@
         Error error;
         bytes_read = process_sp->GetAsyncProfileData (dst, dst_len, error);
     }
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
         log->Printf ("SBProcess(%p)::GetProfileData (dst=\"%.*s\", dst_len=%" PRIu64 ") => %" PRIu64,
-                     process_sp.get(),
-                     (int) bytes_read,
-                     dst,
-                     (uint64_t)dst_len,
-                     (uint64_t)bytes_read);
-    
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<int>(bytes_read), dst,
+                     static_cast<uint64_t>(dst_len),
+                     static_cast<uint64_t>(bytes_read));
+
     return bytes_read;
 }
 
@@ -483,7 +485,8 @@
 
     if (log)
         log->Printf ("SBProcess(%p)::SetSelectedThreadByID (tid=0x%4.4" PRIx64 ") => %s",
-                     process_sp.get(), tid, (ret_val ? "true" : "false"));
+                     static_cast<void*>(process_sp.get()), tid,
+                     (ret_val ? "true" : "false"));
 
     return ret_val;
 }
@@ -502,8 +505,9 @@
     }
 
     if (log)
-        log->Printf ("SBProcess(%p)::SetSelectedThreadByID (tid=0x%x) => %s", 
-                     process_sp.get(), index_id, (ret_val ? "true" : "false"));
+        log->Printf ("SBProcess(%p)::SetSelectedThreadByID (tid=0x%x) => %s",
+                     static_cast<void*>(process_sp.get()), index_id,
+                     (ret_val ? "true" : "false"));
 
     return ret_val;
 }
@@ -526,10 +530,10 @@
     }
 
     if (log)
-    {
         log->Printf ("SBProcess(%p)::GetThreadAtIndex (index=%d) => SBThread(%p)",
-                     process_sp.get(), (uint32_t) index, thread_sp.get());
-    }
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<uint32_t>(index),
+                     static_cast<void*>(thread_sp.get()));
 
     return sb_thread;
 }
@@ -544,13 +548,14 @@
     if (process_sp)
     {
         Process::StopLocker stop_locker;
-        
+
         Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex());
         num_queues = process_sp->GetQueueList().GetSize();
     }
 
     if (log)
-        log->Printf ("SBProcess(%p)::GetNumQueues () => %d", process_sp.get(), num_queues);
+        log->Printf ("SBProcess(%p)::GetNumQueues () => %d",
+                     static_cast<void*>(process_sp.get()), num_queues);
 
     return num_queues;
 }
@@ -572,10 +577,10 @@
     }
 
     if (log)
-    {
         log->Printf ("SBProcess(%p)::GetQueueAtIndex (index=%d) => SBQueue(%p)",
-                     process_sp.get(), (uint32_t) index, queue_sp.get());
-    }
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<uint32_t>(index),
+                     static_cast<void*>(queue_sp.get()));
 
     return sb_queue;
 }
@@ -610,8 +615,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetState () => %s", 
-                     process_sp.get(),
+        log->Printf ("SBProcess(%p)::GetState () => %s",
+                     static_cast<void*>(process_sp.get()),
                      lldb_private::StateAsCString (ret_val));
 
     return ret_val;
@@ -630,8 +635,9 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetExitStatus () => %i (0x%8.8x)", 
-                     process_sp.get(), exit_status, exit_status);
+        log->Printf ("SBProcess(%p)::GetExitStatus () => %i (0x%8.8x)",
+                     static_cast<void*>(process_sp.get()), exit_status,
+                     exit_status);
 
     return exit_status;
 }
@@ -648,8 +654,8 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetExitDescription () => %s", 
-                     process_sp.get(), exit_desc);
+        log->Printf ("SBProcess(%p)::GetExitDescription () => %s",
+                     static_cast<void*>(process_sp.get()), exit_desc);
     return exit_desc;
 }
 
@@ -663,7 +669,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetProcessID () => %" PRIu64, process_sp.get(), ret_val);
+        log->Printf ("SBProcess(%p)::GetProcessID () => %" PRIu64,
+                     static_cast<void*>(process_sp.get()), ret_val);
 
     return ret_val;
 }
@@ -677,7 +684,8 @@
         ret_val = process_sp->GetUniqueID();
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetUniqueID () => %" PRIu32, process_sp.get(), ret_val);
+        log->Printf ("SBProcess(%p)::GetUniqueID () => %" PRIu32,
+                     static_cast<void*>(process_sp.get()), ret_val);
     return ret_val;
 }
 
@@ -688,10 +696,11 @@
     ProcessSP process_sp(GetSP());
     if (process_sp)
         byteOrder = process_sp->GetTarget().GetArchitecture().GetByteOrder();
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetByteOrder () => %d", process_sp.get(), byteOrder);
+        log->Printf ("SBProcess(%p)::GetByteOrder () => %d",
+                     static_cast<void*>(process_sp.get()), byteOrder);
 
     return byteOrder;
 }
@@ -706,7 +715,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBProcess(%p)::GetAddressByteSize () => %d", process_sp.get(), size);
+        log->Printf ("SBProcess(%p)::GetAddressByteSize () => %d",
+                     static_cast<void*>(process_sp.get()), size);
 
     return size;
 }
@@ -715,24 +725,26 @@
 SBProcess::Continue ()
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBError sb_error;
     ProcessSP process_sp(GetSP());
 
     if (log)
-        log->Printf ("SBProcess(%p)::Continue ()...", process_sp.get());
+        log->Printf ("SBProcess(%p)::Continue ()...",
+                     static_cast<void*>(process_sp.get()));
 
     if (process_sp)
     {
         Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex());
-        
+
         Error error (process_sp->Resume());
         if (error.Success())
         {
             if (process_sp->GetTarget().GetDebugger().GetAsyncExecution () == false)
             {
                 if (log)
-                    log->Printf ("SBProcess(%p)::Continue () waiting for process to stop...", process_sp.get());
+                    log->Printf ("SBProcess(%p)::Continue () waiting for process to stop...",
+                                 static_cast<void*>(process_sp.get()));
                 process_sp->WaitForProcessToStop (NULL);
             }
         }
@@ -745,7 +757,9 @@
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::Continue () => SBError (%p): %s", process_sp.get(), sb_error.get(), sstr.GetData());
+        log->Printf ("SBProcess(%p)::Continue () => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(sb_error.get()), sstr.GetData());
     }
 
     return sb_error;
@@ -770,10 +784,9 @@
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::Destroy () => SBError (%p): %s", 
-                     process_sp.get(), 
-                     sb_error.get(), 
-                     sstr.GetData());
+        log->Printf ("SBProcess(%p)::Destroy () => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(sb_error.get()), sstr.GetData());
     }
 
     return sb_error;
@@ -792,16 +805,15 @@
     }
     else
         sb_error.SetErrorString ("SBProcess is invalid");
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::Stop () => SBError (%p): %s", 
-                     process_sp.get(), 
-                     sb_error.get(),
-                     sstr.GetData());
+        log->Printf ("SBProcess(%p)::Stop () => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(sb_error.get()), sstr.GetData());
     }
 
     return sb_error;
@@ -825,10 +837,9 @@
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::Kill () => SBError (%p): %s", 
-                     process_sp.get(), 
-                     sb_error.get(),
-                     sstr.GetData());
+        log->Printf ("SBProcess(%p)::Kill () => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(sb_error.get()), sstr.GetData());
     }
 
     return sb_error;
@@ -869,17 +880,15 @@
         sb_error.SetError (process_sp->Signal (signo));
     }
     else
-        sb_error.SetErrorString ("SBProcess is invalid");    
+        sb_error.SetErrorString ("SBProcess is invalid");
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
     {
         SBStream sstr;
         sb_error.GetDescription (sstr);
-        log->Printf ("SBProcess(%p)::Signal (signo=%i) => SBError (%p): %s", 
-                     process_sp.get(), 
-                     signo,
-                     sb_error.get(),
-                     sstr.GetData());
+        log->Printf ("SBProcess(%p)::Signal (signo=%i) => SBError (%p): %s",
+                     static_cast<void*>(process_sp.get()), signo,
+                     static_cast<void*>(sb_error.get()), sstr.GetData());
     }
     return sb_error;
 }
@@ -911,12 +920,9 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
         log->Printf ("SBProcess(%p)::GetThreadByID (tid=0x%4.4" PRIx64 ") => SBThread (%p)",
-                     process_sp.get(), 
-                     tid,
-                     thread_sp.get());
-    }
+                     static_cast<void*>(process_sp.get()), tid,
+                     static_cast<void*>(thread_sp.get()));
 
     return sb_thread;
 }
@@ -938,12 +944,9 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
-        log->Printf ("SBProcess(%p)::GetThreadByID (tid=0x%x) => SBThread (%p)", 
-                     process_sp.get(), 
-                     index_id,
-                     thread_sp.get());
-    }
+        log->Printf ("SBProcess(%p)::GetThreadByID (tid=0x%x) => SBThread (%p)",
+                     static_cast<void*>(process_sp.get()), index_id,
+                     static_cast<void*>(thread_sp.get()));
 
     return sb_thread;
 }
@@ -954,9 +957,10 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     StateType ret_val = Process::ProcessEventData::GetStateFromEvent (event.get());
-    
+
     if (log)
-        log->Printf ("SBProcess::GetStateFromEvent (event.sp=%p) => %s", event.get(),
+        log->Printf ("SBProcess::GetStateFromEvent (event.sp=%p) => %s",
+                     static_cast<void*>(event.get()),
                      lldb_private::StateAsCString (ret_val));
 
     return ret_val;
@@ -1003,8 +1007,9 @@
     SBBroadcaster broadcaster(process_sp.get(), false);
 
     if (log)
-        log->Printf ("SBProcess(%p)::GetBroadcaster () => SBBroadcaster (%p)",  process_sp.get(),
-                     broadcaster.get());
+        log->Printf ("SBProcess(%p)::GetBroadcaster () => SBBroadcaster (%p)",
+                     static_cast<void*>(process_sp.get()),
+                     static_cast<void*>(broadcaster.get()));
 
     return broadcaster;
 }
@@ -1025,15 +1030,11 @@
     ProcessSP process_sp(GetSP());
 
     if (log)
-    {
         log->Printf ("SBProcess(%p)::ReadMemory (addr=0x%" PRIx64 ", dst=%p, dst_len=%" PRIu64 ", SBError (%p))...",
-                     process_sp.get(), 
-                     addr, 
-                     dst, 
-                     (uint64_t)dst_len,
-                     sb_error.get());
-    }
-    
+                     static_cast<void*>(process_sp.get()), addr,
+                     static_cast<void*>(dst), static_cast<uint64_t>(dst_len),
+                     static_cast<void*>(sb_error.get()));
+
     if (process_sp)
     {
         Process::StopLocker stop_locker;
@@ -1045,7 +1046,8 @@
         else
         {
             if (log)
-                log->Printf ("SBProcess(%p)::ReadMemory() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::ReadMemory() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1059,13 +1061,10 @@
         SBStream sstr;
         sb_error.GetDescription (sstr);
         log->Printf ("SBProcess(%p)::ReadMemory (addr=0x%" PRIx64 ", dst=%p, dst_len=%" PRIu64 ", SBError (%p): %s) => %" PRIu64,
-                     process_sp.get(), 
-                     addr, 
-                     dst, 
-                     (uint64_t)dst_len,
-                     sb_error.get(), 
-                     sstr.GetData(),
-                     (uint64_t)bytes_read);
+                     static_cast<void*>(process_sp.get()), addr,
+                     static_cast<void*>(dst), static_cast<uint64_t>(dst_len),
+                     static_cast<void*>(sb_error.get()), sstr.GetData(),
+                     static_cast<uint64_t>(bytes_read));
     }
 
     return bytes_read;
@@ -1088,7 +1087,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBProcess(%p)::ReadCStringFromMemory() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::ReadCStringFromMemory() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1116,7 +1116,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBProcess(%p)::ReadUnsignedFromMemory() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::ReadUnsignedFromMemory() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1144,7 +1145,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBProcess(%p)::ReadPointerFromMemory() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::ReadPointerFromMemory() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1165,14 +1167,11 @@
     ProcessSP process_sp(GetSP());
 
     if (log)
-    {
         log->Printf ("SBProcess(%p)::WriteMemory (addr=0x%" PRIx64 ", src=%p, src_len=%" PRIu64 ", SBError (%p))...",
-                     process_sp.get(), 
-                     addr, 
-                     src, 
-                     (uint64_t)src_len,
-                     sb_error.get());
-    }
+                     static_cast<void*>(process_sp.get()), addr,
+                     static_cast<const void*>(src),
+                     static_cast<uint64_t>(src_len),
+                     static_cast<void*>(sb_error.get()));
 
     if (process_sp)
     {
@@ -1185,7 +1184,8 @@
         else
         {
             if (log)
-                log->Printf ("SBProcess(%p)::WriteMemory() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::WriteMemory() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1195,13 +1195,11 @@
         SBStream sstr;
         sb_error.GetDescription (sstr);
         log->Printf ("SBProcess(%p)::WriteMemory (addr=0x%" PRIx64 ", src=%p, src_len=%" PRIu64 ", SBError (%p): %s) => %" PRIu64,
-                     process_sp.get(), 
-                     addr, 
-                     src, 
-                     (uint64_t)src_len, 
-                     sb_error.get(), 
-                     sstr.GetData(),
-                     (uint64_t)bytes_written);
+                     static_cast<void*>(process_sp.get()), addr,
+                     static_cast<const void*>(src),
+                     static_cast<uint64_t>(src_len),
+                     static_cast<void*>(sb_error.get()), sstr.GetData(),
+                     static_cast<uint64_t>(bytes_written));
     }
 
     return bytes_written;
@@ -1248,7 +1246,7 @@
         sb_error.SetError(process_sp->GetWatchpointSupportInfo (num));
         if (log)
             log->Printf ("SBProcess(%p)::GetNumSupportedHardwareWatchpoints () => %u",
-                         process_sp.get(), num);
+                         static_cast<void*>(process_sp.get()), num);
     }
     else
     {
@@ -1273,13 +1271,14 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBProcess(%p)::LoadImage() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::LoadImage() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
     return LLDB_INVALID_IMAGE_TOKEN;
 }
-    
+
 lldb::SBError
 SBProcess::UnloadImage (uint32_t image_token)
 {
@@ -1297,7 +1296,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBProcess(%p)::UnloadImage() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::UnloadImage() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1323,7 +1323,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBProcess(%p)::SendEventData() => error: process is running", process_sp.get());
+                log->Printf ("SBProcess(%p)::SendEventData() => error: process is running",
+                             static_cast<void*>(process_sp.get()));
             sb_error.SetErrorString("process is running");
         }
     }
@@ -1360,7 +1361,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf("SBProcess(%p)::GetExtendedBacktraceTypeAtIndex() => error: requested extended backtrace name out of bounds", process_sp.get());
+                log->Printf("SBProcess(%p)::GetExtendedBacktraceTypeAtIndex() => error: requested extended backtrace name out of bounds",
+                            static_cast<void*>(process_sp.get()));
         }
     }
     return NULL;
diff --git a/lldb/source/API/SBQueue.cpp b/lldb/source/API/SBQueue.cpp
index 96876ac..31867b0 100644
--- a/lldb/source/API/SBQueue.cpp
+++ b/lldb/source/API/SBQueue.cpp
@@ -98,7 +98,8 @@
             }
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBQueue(%p)::GetQueueID () => 0x%" PRIx64, this, result);
+                log->Printf ("SBQueue(%p)::GetQueueID () => 0x%" PRIx64,
+                             static_cast<const void*>(this), result);
             return result;
         }
 
@@ -113,10 +114,11 @@
             }
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBQueueImpl(%p)::GetIndexID () => %d", this, result);
+                log->Printf ("SBQueueImpl(%p)::GetIndexID () => %d",
+                             static_cast<const void*>(this), result);
             return result;
         }
-        
+
         const char *
         GetName () const
         {
@@ -126,14 +128,16 @@
             {
                 name = queue_sp->GetName();
             }
-        
+
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBQueueImpl(%p)::GetName () => %s", this, name ? name : "NULL");
-        
+                log->Printf ("SBQueueImpl(%p)::GetName () => %s",
+                             static_cast<const void*>(this),
+                             name ? name : "NULL");
+
             return name;
         }
-        
+
         void
         FetchThreads ()
         {
@@ -160,7 +164,7 @@
                 }
             }
         }
-        
+
         void
         FetchItems ()
         {
@@ -187,12 +191,12 @@
                 }
             }
         }
-        
+
         uint32_t
         GetNumThreads ()
         {
             uint32_t result = 0;
-        
+
             FetchThreads();
             if (m_thread_list_fetched)
             {
@@ -200,12 +204,12 @@
             }
             return result;
         }
-        
+
         lldb::SBThread
         GetThreadAtIndex (uint32_t idx)
         {
             FetchThreads();
-        
+
             SBThread sb_thread;
             QueueSP queue_sp = m_queue_wp.lock();
             if (queue_sp && idx < m_threads.size())
@@ -261,7 +265,7 @@
                 result = queue_sp->GetNumRunningWorkItems();
             return result;
         }
-        
+
         lldb::SBProcess
         GetProcess ()
         {
diff --git a/lldb/source/API/SBQueueItem.cpp b/lldb/source/API/SBQueueItem.cpp
index 10d036a..6a1aa7b 100644
--- a/lldb/source/API/SBQueueItem.cpp
+++ b/lldb/source/API/SBQueueItem.cpp
@@ -49,7 +49,9 @@
     bool is_valid = m_queue_item_sp.get() != NULL;
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf("SBQueueItem(%p)::IsValid() == %s", m_queue_item_sp.get(), is_valid ? "true" : "false");
+        log->Printf("SBQueueItem(%p)::IsValid() == %s",
+                    static_cast<void*>(m_queue_item_sp.get()),
+                    is_valid ? "true" : "false");
     return is_valid;
 }
 
@@ -59,7 +61,8 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf("SBQueueItem(%p)::Clear()", m_queue_item_sp.get());
+        log->Printf("SBQueueItem(%p)::Clear()",
+                    static_cast<void*>(m_queue_item_sp.get()));
     m_queue_item_sp.reset();
 }
 
@@ -81,7 +84,9 @@
         result = m_queue_item_sp->GetKind ();
     }
     if (log)
-        log->Printf("SBQueueItem(%p)::GetKind() == %d", m_queue_item_sp.get(), (int) result);
+        log->Printf("SBQueueItem(%p)::GetKind() == %d",
+                    static_cast<void*>(m_queue_item_sp.get()),
+                    static_cast<int>(result));
     return result;
 }
 
@@ -110,7 +115,8 @@
         if (addr)
             addr->Dump (&sstr, NULL, Address::DumpStyleModuleWithFileAddress, Address::DumpStyleInvalid, 4);
         log->Printf ("SBQueueItem(%p)::GetAddress() == SBAddress(%p): %s",
-                     m_queue_item_sp.get(), result.get(), sstr.GetData());
+                     static_cast<void*>(m_queue_item_sp.get()),
+                     static_cast<void*>(result.get()), sstr.GetData());
     }
     return result;
 }
@@ -149,7 +155,11 @@
                     const char *queue_name = thread_sp->GetQueueName();
                     if (queue_name == NULL)
                         queue_name = "";
-                    log->Printf ("SBQueueItem(%p)::GetExtendedBacktraceThread() = new extended Thread created (%p) with queue_id 0x%" PRIx64 " queue name '%s'", m_queue_item_sp.get(), thread_sp.get(), (uint64_t) thread_sp->GetQueueID(), queue_name);
+                    log->Printf ("SBQueueItem(%p)::GetExtendedBacktraceThread() = new extended Thread created (%p) with queue_id 0x%" PRIx64 " queue name '%s'",
+                                 static_cast<void*>(m_queue_item_sp.get()),
+                                 static_cast<void*>(thread_sp.get()),
+                                 static_cast<uint64_t>(thread_sp->GetQueueID()),
+                                 queue_name);
                 }
             }
         }
diff --git a/lldb/source/API/SBSymbol.cpp b/lldb/source/API/SBSymbol.cpp
index ef3d076..12a3b31 100644
--- a/lldb/source/API/SBSymbol.cpp
+++ b/lldb/source/API/SBSymbol.cpp
@@ -67,7 +67,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBSymbol(%p)::GetName () => \"%s\"", m_opaque_ptr, name ? name : "");
+        log->Printf ("SBSymbol(%p)::GetName () => \"%s\"",
+                     static_cast<void*>(m_opaque_ptr), name ? name : "");
     return name;
 }
 
@@ -79,7 +80,8 @@
         name = m_opaque_ptr->GetMangled().GetMangledName().AsCString();
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBSymbol(%p)::GetMangledName () => \"%s\"", m_opaque_ptr, name ? name : "");
+        log->Printf ("SBSymbol(%p)::GetMangledName () => \"%s\"",
+                     static_cast<void*>(m_opaque_ptr), name ? name : "");
 
     return name;
 }
diff --git a/lldb/source/API/SBSymbolContext.cpp b/lldb/source/API/SBSymbolContext.cpp
index 479b0f7..481fa1a 100644
--- a/lldb/source/API/SBSymbolContext.cpp
+++ b/lldb/source/API/SBSymbolContext.cpp
@@ -101,8 +101,9 @@
     {
         SBStream sstr;
         sb_module.GetDescription (sstr);
-        log->Printf ("SBSymbolContext(%p)::GetModule () => SBModule(%p): %s", 
-                     m_opaque_ap.get(), module_sp.get(), sstr.GetData());
+        log->Printf ("SBSymbolContext(%p)::GetModule () => SBModule(%p): %s",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<void*>(module_sp.get()), sstr.GetData());
     }
 
     return sb_module;
@@ -120,15 +121,16 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     Function *function = NULL;
-    
+
     if (m_opaque_ap.get())
         function = m_opaque_ap->function;
 
     SBFunction sb_function (function);
 
     if (log)
-        log->Printf ("SBSymbolContext(%p)::GetFunction () => SBFunction(%p)", 
-                     m_opaque_ap.get(), function);
+        log->Printf ("SBSymbolContext(%p)::GetFunction () => SBFunction(%p)",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<void*>(function));
 
     return sb_function;
 }
@@ -150,8 +152,9 @@
 
     if (log)
     {
-        log->Printf ("SBSymbolContext(%p)::GetLineEntry () => SBLineEntry(%p)", 
-                     m_opaque_ap.get(), sb_line_entry.get());
+        log->Printf ("SBSymbolContext(%p)::GetLineEntry () => SBLineEntry(%p)",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<void*>(sb_line_entry.get()));
     }
 
     return sb_line_entry;
@@ -163,19 +166,18 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     Symbol *symbol = NULL;
-    
+
     if (m_opaque_ap.get())
         symbol = m_opaque_ap->symbol;
 
     SBSymbol sb_symbol (symbol);
 
     if (log)
-    {
-        log->Printf ("SBSymbolContext(%p)::GetSymbol () => SBSymbol(%p)", 
-                     m_opaque_ap.get(), symbol);
-    }
+        log->Printf ("SBSymbolContext(%p)::GetSymbol () => SBSymbol(%p)",
+                     static_cast<void*>(m_opaque_ap.get()),
+                     static_cast<void*>(symbol));
 
-    return sb_symbol; 
+    return sb_symbol;
 }
 
 void
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 9f006f5..817f1bc 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -552,10 +552,9 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::GetProcess () => SBProcess(%p)", 
-                     target_sp.get(), process_sp.get());
-    }
+        log->Printf ("SBTarget(%p)::GetProcess () => SBProcess(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(process_sp.get()));
 
     return sb_process;
 }
@@ -652,19 +651,15 @@
     TargetSP target_sp(GetSP());
 
     if (log)
-    {
         log->Printf ("SBTarget(%p)::Launch (argv=%p, envp=%p, stdin=%s, stdout=%s, stderr=%s, working-dir=%s, launch_flags=0x%x, stop_at_entry=%i, &error (%p))...",
-                     target_sp.get(), 
-                     argv, 
-                     envp, 
-                     stdin_path ? stdin_path : "NULL", 
-                     stdout_path ? stdout_path : "NULL", 
-                     stderr_path ? stderr_path : "NULL", 
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(argv), static_cast<void*>(envp),
+                     stdin_path ? stdin_path : "NULL",
+                     stdout_path ? stdout_path : "NULL",
+                     stderr_path ? stderr_path : "NULL",
                      working_directory ? working_directory : "NULL",
-                     launch_flags, 
-                     stop_at_entry, 
-                     error.get());
-    }
+                     launch_flags, stop_at_entry,
+                     static_cast<void*>(error.get()));
 
     if (target_sp)
     {
@@ -678,17 +673,17 @@
         if (process_sp)
         {
             state = process_sp->GetState();
-            
+
             if (process_sp->IsAlive() && state != eStateConnected)
-            {       
+            {
                 if (state == eStateAttaching)
                     error.SetErrorString ("process attach is in progress");
                 else
                     error.SetErrorString ("a process is already being debugged");
                 return sb_process;
-            }            
+            }
         }
-        
+
         if (state == eStateConnected)
         {
             // If we are already connected, then we have already specified the
@@ -705,7 +700,7 @@
             launch_flags |= eLaunchFlagDisableSTDIO;
 
         ProcessLaunchInfo launch_info (stdin_path, stdout_path, stderr_path, working_directory, launch_flags);
-        
+
         Module *exe_module = target_sp->GetExecutableModulePointer();
         if (exe_module)
             launch_info.SetExecutableFile(exe_module->GetPlatformFileSpec(), true);
@@ -728,10 +723,9 @@
 
     log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::Launch (...) => SBProcess(%p)", 
-                     target_sp.get(), sb_process.GetSP().get());
-    }
+        log->Printf ("SBTarget(%p)::Launch (...) => SBProcess(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(sb_process.GetSP().get()));
 
     return sb_process;
 }
@@ -740,15 +734,14 @@
 SBTarget::Launch (SBLaunchInfo &sb_launch_info, SBError& error)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBProcess sb_process;
     TargetSP target_sp(GetSP());
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::Launch (launch_info, error)...", target_sp.get());
-    }
-    
+        log->Printf ("SBTarget(%p)::Launch (launch_info, error)...",
+                     static_cast<void*>(target_sp.get()));
+
     if (target_sp)
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
@@ -758,15 +751,15 @@
         if (process_sp)
         {
             state = process_sp->GetState();
-            
+
             if (process_sp->IsAlive() && state != eStateConnected)
-            {       
+            {
                 if (state == eStateAttaching)
                     error.SetErrorString ("process attach is in progress");
                 else
                     error.SetErrorString ("a process is already being debugged");
                 return sb_process;
-            }            
+            }
         }
         }
 
@@ -779,7 +772,7 @@
         const ArchSpec &arch_spec = target_sp->GetArchitecture();
         if (arch_spec.IsValid())
             launch_info.GetArchitecture () = arch_spec;
-        
+
         error.SetError (target_sp->Launch (target_sp->GetDebugger().GetListener(), launch_info));
         sb_process.SetSP(target_sp->GetProcessSP());
     }
@@ -787,14 +780,13 @@
     {
         error.SetErrorString ("SBTarget is invalid");
     }
-    
+
     log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
     if (log)
-    {
         log->Printf ("SBTarget(%p)::Launch (...) => SBProcess(%p)",
-                     target_sp.get(), sb_process.GetSP().get());
-    }
-    
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(sb_process.GetSP().get()));
+
     return sb_process;
 }
 
@@ -802,41 +794,39 @@
 SBTarget::Attach (SBAttachInfo &sb_attach_info, SBError& error)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBProcess sb_process;
     ProcessSP process_sp;
     TargetSP target_sp(GetSP());
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::Attach (sb_attach_info, error)...", target_sp.get());
-    }
-    
+        log->Printf ("SBTarget(%p)::Attach (sb_attach_info, error)...",
+                     static_cast<void*>(target_sp.get()));
+
     if (target_sp)
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
-        
+
         StateType state = eStateInvalid;
         process_sp = target_sp->GetProcessSP();
         if (process_sp)
         {
             state = process_sp->GetState();
-            
+
             if (process_sp->IsAlive() && state != eStateConnected)
-            {       
+            {
                 if (state == eStateAttaching)
                     error.SetErrorString ("process attach is in progress");
                 else
                     error.SetErrorString ("a process is already being debugged");
                 if (log)
-                {
                     log->Printf ("SBTarget(%p)::Attach (...) => error %s",
-                                 target_sp.get(), error.GetCString());
-                }
+                                 static_cast<void*>(target_sp.get()),
+                                 error.GetCString());
                 return sb_process;
-            }            
+            }
         }
-        
+
         if (state != eStateConnected)
             process_sp = target_sp->CreateProcess (target_sp->GetDebugger().GetListener(), NULL, NULL);
 
@@ -861,7 +851,7 @@
                         if (log)
                         {
                             log->Printf ("SBTarget(%p)::Attach (...) => error %s",
-                                         target_sp.get(), error.GetCString());
+                                         static_cast<void*>(target_sp.get()), error.GetCString());
                         }
                         return sb_process;
                     }
@@ -886,13 +876,12 @@
     {
         error.SetErrorString ("SBTarget is invalid");
     }
-    
+
     if (log)
-    {
         log->Printf ("SBTarget(%p)::Attach (...) => SBProcess(%p)",
-                     target_sp.get(), process_sp.get());
-    }
-    
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(process_sp.get()));
+
     return sb_process;
 }
 
@@ -924,10 +913,9 @@
     TargetSP target_sp(GetSP());
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::AttachToProcessWithID (listener, pid=%" PRId64 ", error)...", target_sp.get(), pid);
-    }
-    
+        log->Printf ("SBTarget(%p)::AttachToProcessWithID (listener, pid=%" PRId64 ", error)...",
+                     static_cast<void*>(target_sp.get()), pid);
+
     if (target_sp)
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
@@ -937,15 +925,15 @@
         if (process_sp)
         {
             state = process_sp->GetState();
-            
+
             if (process_sp->IsAlive() && state != eStateConnected)
-            {       
+            {
                 if (state == eStateAttaching)
                     error.SetErrorString ("process attach is in progress");
                 else
                     error.SetErrorString ("a process is already being debugged");
                 return sb_process;
-            }            
+            }
         }
 
         if (state == eStateConnected)
@@ -969,10 +957,10 @@
         if (process_sp)
         {
             sb_process.SetSP (process_sp);
-            
+
             ProcessAttachInfo attach_info;
             attach_info.SetProcessID (pid);
-            
+
             PlatformSP platform_sp = target_sp->GetPlatform();
             ProcessInstanceInfo instance_info;
             if (platform_sp->GetProcessInfo(pid, instance_info))
@@ -997,12 +985,11 @@
     {
         error.SetErrorString ("SBTarget is invalid");
     }
-    
+
     if (log)
-    {
         log->Printf ("SBTarget(%p)::AttachToProcessWithID (...) => SBProcess(%p)",
-                     target_sp.get(), process_sp.get());
-    }
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(process_sp.get()));
     return sb_process;
 }
 
@@ -1016,16 +1003,16 @@
 )
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBProcess sb_process;
     ProcessSP process_sp;
     TargetSP target_sp(GetSP());
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::AttachToProcessWithName (listener, name=%s, wait_for=%s, error)...", target_sp.get(), name, wait_for ? "true" : "false");
-    }
-    
+        log->Printf ("SBTarget(%p)::AttachToProcessWithName (listener, name=%s, wait_for=%s, error)...",
+                     static_cast<void*>(target_sp.get()), name,
+                     wait_for ? "true" : "false");
+
     if (name && target_sp)
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
@@ -1035,17 +1022,17 @@
         if (process_sp)
         {
             state = process_sp->GetState();
-            
+
             if (process_sp->IsAlive() && state != eStateConnected)
-            {       
+            {
                 if (state == eStateAttaching)
                     error.SetErrorString ("process attach is in progress");
                 else
                     error.SetErrorString ("a process is already being debugged");
                 return sb_process;
-            }            
+            }
         }
-        
+
         if (state == eStateConnected)
         {
             // If we are already connected, then we have already specified the
@@ -1089,12 +1076,11 @@
     {
         error.SetErrorString ("SBTarget is invalid");
     }
-    
+
     if (log)
-    {
         log->Printf ("SBTarget(%p)::AttachToPorcessWithName (...) => SBProcess(%p)",
-                     target_sp.get(), process_sp.get());
-    }
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(process_sp.get()));
     return sb_process;
 }
 
@@ -1112,12 +1098,11 @@
     SBProcess sb_process;
     ProcessSP process_sp;
     TargetSP target_sp(GetSP());
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::ConnectRemote (listener, url=%s, plugin_name=%s, error)...", target_sp.get(), url, plugin_name);
-    }
-    
+        log->Printf ("SBTarget(%p)::ConnectRemote (listener, url=%s, plugin_name=%s, error)...",
+                     static_cast<void*>(target_sp.get()), url, plugin_name);
+
     if (target_sp)
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
@@ -1125,8 +1110,7 @@
             process_sp = target_sp->CreateProcess (listener.ref(), plugin_name, NULL);
         else
             process_sp = target_sp->CreateProcess (target_sp->GetDebugger().GetListener(), plugin_name, NULL);
-        
-        
+
         if (process_sp)
         {
             sb_process.SetSP (process_sp);
@@ -1141,12 +1125,11 @@
     {
         error.SetErrorString ("SBTarget is invalid");
     }
-    
+
     if (log)
-    {
         log->Printf ("SBTarget(%p)::ConnectRemote (...) => SBProcess(%p)",
-                     target_sp.get(), process_sp.get());
-    }
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(process_sp.get()));
     return sb_process;
 }
 
@@ -1166,8 +1149,9 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
     {
-        log->Printf ("SBTarget(%p)::GetExecutable () => SBFileSpec(%p)", 
-                     target_sp.get(), exe_file_spec.get());
+        log->Printf ("SBTarget(%p)::GetExecutable () => SBFileSpec(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<const void*>(exe_file_spec.get()));
     }
 
     return exe_file_spec;
@@ -1269,7 +1253,7 @@
     if (target_sp && line != 0)
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
-        
+
         const LazyBool check_inlines = eLazyBoolCalculate;
         const LazyBool skip_prologue = eLazyBoolCalculate;
         const bool internal = false;
@@ -1283,12 +1267,9 @@
         sb_bp.GetDescription (sstr);
         char path[PATH_MAX];
         sb_file_spec->GetPath (path, sizeof(path));
-        log->Printf ("SBTarget(%p)::BreakpointCreateByLocation ( %s:%u ) => SBBreakpoint(%p): %s", 
-                     target_sp.get(), 
-                     path,
-                     line, 
-                     sb_bp.get(),
-                     sstr.GetData());
+        log->Printf ("SBTarget(%p)::BreakpointCreateByLocation ( %s:%u ) => SBBreakpoint(%p): %s",
+                     static_cast<void*>(target_sp.get()), path, line,
+                     static_cast<void*>(sb_bp.get()), sstr.GetData());
     }
 
     return sb_bp;
@@ -1305,7 +1286,7 @@
     if (target_sp.get())
     {
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
-        
+
         const bool internal = false;
         const bool hardware = false;
         const LazyBool skip_prologue = eLazyBoolCalculate;
@@ -1320,12 +1301,11 @@
             *sb_bp = target_sp->CreateBreakpoint (NULL, NULL, symbol_name, eFunctionNameTypeAuto, skip_prologue, internal, hardware);
         }
     }
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByName (symbol=\"%s\", module=\"%s\") => SBBreakpoint(%p)", 
-                     target_sp.get(), symbol_name, module_name, sb_bp.get());
-    }
+        log->Printf ("SBTarget(%p)::BreakpointCreateByName (symbol=\"%s\", module=\"%s\") => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()), symbol_name,
+                     module_name, static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1363,12 +1343,11 @@
                                               internal,
                                               hardware);
     }
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByName (symbol=\"%s\", name_type: %d) => SBBreakpoint(%p)", 
-                     target_sp.get(), symbol_name, name_type_mask, sb_bp.get());
-    }
+        log->Printf ("SBTarget(%p)::BreakpointCreateByName (symbol=\"%s\", name_type: %d) => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()), symbol_name,
+                     name_type_mask, static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1399,10 +1378,11 @@
                                                 internal,
                                                 hardware);
     }
-    
+
     if (log)
     {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByName (symbols={", target_sp.get());
+        log->Printf ("SBTarget(%p)::BreakpointCreateByName (symbols={",
+                     static_cast<void*>(target_sp.get()));
         for (uint32_t i = 0 ; i < num_names; i++)
         {
             char sep;
@@ -1414,9 +1394,9 @@
                 log->Printf ("\"%s\"%c ", symbol_names[i], sep);
             else
                 log->Printf ("\"<NULL>\"%c ", sep);
-            
         }
-        log->Printf ("name_type: %d) => SBBreakpoint(%p)", name_type_mask, sb_bp.get());
+        log->Printf ("name_type: %d) => SBBreakpoint(%p)", name_type_mask,
+                     static_cast<void*>(sb_bp.get()));
     }
 
     return sb_bp;
@@ -1437,12 +1417,12 @@
         const bool internal = false;
         const bool hardware = false;
         const LazyBool skip_prologue = eLazyBoolCalculate;
-        
+
         if (module_name && module_name[0])
         {
             FileSpecList module_spec_list;
             module_spec_list.Append (FileSpec (module_name, false));
-            
+
             *sb_bp = target_sp->CreateFuncRegexBreakpoint (&module_spec_list, NULL, regexp, skip_prologue, internal, hardware);
         }
         else
@@ -1452,10 +1432,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (symbol_regex=\"%s\", module_name=\"%s\") => SBBreakpoint(%p)", 
-                     target_sp.get(), symbol_name_regex, module_name, sb_bp.get());
-    }
+        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (symbol_regex=\"%s\", module_name=\"%s\") => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()), symbol_name_regex,
+                     module_name, static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1476,15 +1455,14 @@
         const bool internal = false;
         const bool hardware = false;
         const LazyBool skip_prologue = eLazyBoolCalculate;
-        
+
         *sb_bp = target_sp->CreateFuncRegexBreakpoint (module_list.get(), comp_unit_list.get(), regexp, skip_prologue, internal, hardware);
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (symbol_regex=\"%s\") => SBBreakpoint(%p)", 
-                     target_sp.get(), symbol_name_regex, sb_bp.get());
-    }
+        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (symbol_regex=\"%s\") => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()), symbol_name_regex,
+                     static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1502,11 +1480,12 @@
         const bool hardware = false;
         *sb_bp = target_sp->CreateBreakpoint (address, false, hardware);
     }
-    
+
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByAddress (address=%" PRIu64 ") => SBBreakpoint(%p)", target_sp.get(), (uint64_t) address, sb_bp.get());
-    }
+        log->Printf ("SBTarget(%p)::BreakpointCreateByAddress (address=%" PRIu64 ") => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<uint64_t>(address),
+                     static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1527,12 +1506,12 @@
         FileSpecList source_file_spec_list;
         const bool hardware = false;
         source_file_spec_list.Append (source_file.ref());
-        
+
         if (module_name && module_name[0])
         {
             FileSpecList module_spec_list;
             module_spec_list.Append (FileSpec (module_name, false));
-            
+
             *sb_bp = target_sp->CreateSourceRegexBreakpoint (&module_spec_list, &source_file_spec_list, regexp, false, hardware);
         }
         else
@@ -1545,8 +1524,9 @@
     {
         char path[PATH_MAX];
         source_file->GetPath (path, sizeof(path));
-        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (source_regex=\"%s\", file=\"%s\", module_name=\"%s\") => SBBreakpoint(%p)", 
-                     target_sp.get(), source_regex, path, module_name, sb_bp.get());
+        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (source_regex=\"%s\", file=\"%s\", module_name=\"%s\") => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()), source_regex, path,
+                     module_name, static_cast<void*>(sb_bp.get()));
     }
 
     return sb_bp;
@@ -1570,10 +1550,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (source_regex=\"%s\") => SBBreakpoint(%p)", 
-                     target_sp.get(), source_regex, sb_bp.get());
-    }
+        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (source_regex=\"%s\") => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()), source_regex,
+                     static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1595,14 +1574,11 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (Language: %s, catch: %s throw: %s) => SBBreakpoint(%p)", 
-                     target_sp.get(),
+        log->Printf ("SBTarget(%p)::BreakpointCreateByRegex (Language: %s, catch: %s throw: %s) => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()),
                      LanguageRuntime::GetNameForLanguageType(language),
-                     catch_bp ? "on" : "off",
-                     throw_bp ? "on" : "off",
-                     sb_bp.get());
-    }
+                     catch_bp ? "on" : "off", throw_bp ? "on" : "off",
+                     static_cast<void*>(sb_bp.get()));
 
     return sb_bp;
 }
@@ -1646,9 +1622,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::BreakpointDelete (bp_id=%d) => %i", target_sp.get(), (uint32_t) bp_id, result);
-    }
+        log->Printf ("SBTarget(%p)::BreakpointDelete (bp_id=%d) => %i",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<uint32_t>(bp_id), result);
 
     return result;
 }
@@ -1667,10 +1643,10 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::FindBreakpointByID (bp_id=%d) => SBBreakpoint(%p)", 
-                     target_sp.get(), (uint32_t) bp_id, sb_breakpoint.get());
-    }
+        log->Printf ("SBTarget(%p)::FindBreakpointByID (bp_id=%d) => SBBreakpoint(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<uint32_t>(bp_id),
+                     static_cast<void*>(sb_breakpoint.get()));
 
     return sb_breakpoint;
 }
@@ -1755,9 +1731,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::WatchpointDelete (wp_id=%d) => %i", target_sp.get(), (uint32_t) wp_id, result);
-    }
+        log->Printf ("SBTarget(%p)::WatchpointDelete (wp_id=%d) => %i",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<uint32_t>(wp_id), result);
 
     return result;
 }
@@ -1780,10 +1756,10 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::FindWatchpointByID (bp_id=%d) => SBWatchpoint(%p)", 
-                     target_sp.get(), (uint32_t) wp_id, watchpoint_sp.get());
-    }
+        log->Printf ("SBTarget(%p)::FindWatchpointByID (bp_id=%d) => SBWatchpoint(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<uint32_t>(wp_id),
+                     static_cast<void*>(watchpoint_sp.get()));
 
     return sb_watchpoint;
 }
@@ -1792,7 +1768,7 @@
 SBTarget::WatchAddress (lldb::addr_t addr, size_t size, bool read, bool write, SBError &error)
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     SBWatchpoint sb_watchpoint;
     lldb::WatchpointSP watchpoint_sp;
     TargetSP target_sp(GetSP());
@@ -1809,7 +1785,7 @@
             error.SetErrorString("Can't create a watchpoint that is neither read nor write.");
             return sb_watchpoint;
         }
-        
+
         // Target::CreateWatchpoint() is thread safe.
         Error cw_error;
         // This API doesn't take in a type, so we can't figure out what it is.
@@ -1818,13 +1794,13 @@
         error.SetError(cw_error);
         sb_watchpoint.SetSP (watchpoint_sp);
     }
-    
+
     if (log)
-    {
         log->Printf ("SBTarget(%p)::WatchAddress (addr=0x%" PRIx64 ", 0x%u) => SBWatchpoint(%p)",
-                     target_sp.get(), addr, (uint32_t) size, watchpoint_sp.get());
-    }
-    
+                     static_cast<void*>(target_sp.get()), addr,
+                     static_cast<uint32_t>(size),
+                     static_cast<void*>(watchpoint_sp.get()));
+
     return sb_watchpoint;
 }
 
@@ -1871,7 +1847,7 @@
         if (pointer_ast_type)
         {
             lldb::DataBufferSP buffer(new lldb_private::DataBufferHeap(&address,sizeof(lldb::addr_t)));
-            
+
             ExecutionContext exe_ctx (ExecutionContextRef(ExecutionContext(m_opaque_sp.get(),false)));
             ValueObjectSP ptr_result_valobj_sp(ValueObjectConstResult::Create (exe_ctx.GetBestExecutionContextScope(),
                                                                                pointer_ast_type,
@@ -1879,7 +1855,7 @@
                                                                                buffer,
                                                                                exe_ctx.GetByteOrder(),
                                                                                exe_ctx.GetAddressByteSize()));
-            
+
             if (ptr_result_valobj_sp)
             {
                 ptr_result_valobj_sp->GetValue().SetValueType(Value::eValueTypeLoadAddress);
@@ -1895,9 +1871,12 @@
     if (log)
     {
         if (new_value_sp)
-            log->Printf ("SBTarget(%p)::CreateValueFromAddress => \"%s\"", m_opaque_sp.get(), new_value_sp->GetName().AsCString());
+            log->Printf ("SBTarget(%p)::CreateValueFromAddress => \"%s\"",
+                         static_cast<void*>(m_opaque_sp.get()),
+                         new_value_sp->GetName().AsCString());
         else
-            log->Printf ("SBTarget(%p)::CreateValueFromAddress => NULL", m_opaque_sp.get());
+            log->Printf ("SBTarget(%p)::CreateValueFromAddress => NULL",
+                         static_cast<void*>(m_opaque_sp.get()));
     }
     return sb_value;
 }
@@ -1992,7 +1971,8 @@
     }
 
     if (log)
-        log->Printf ("SBTarget(%p)::GetNumModules () => %d", target_sp.get(), num);
+        log->Printf ("SBTarget(%p)::GetNumModules () => %d",
+                     static_cast<void*>(target_sp.get()), num);
 
     return num;
 }
@@ -2003,7 +1983,8 @@
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     if (log)
-        log->Printf ("SBTarget(%p)::Clear ()", m_opaque_sp.get());
+        log->Printf ("SBTarget(%p)::Clear ()",
+                     static_cast<void*>(m_opaque_sp.get()));
 
     m_opaque_sp.reset();
 }
@@ -2074,10 +2055,9 @@
     }
 
     if (log)
-    {
-        log->Printf ("SBTarget(%p)::GetModuleAtIndex (idx=%d) => SBModule(%p)", 
-                     target_sp.get(), idx, module_sp.get());
-    }
+        log->Printf ("SBTarget(%p)::GetModuleAtIndex (idx=%d) => SBModule(%p)",
+                     static_cast<void*>(target_sp.get()), idx,
+                     static_cast<void*>(module_sp.get()));
 
     return sb_module;
 }
@@ -2099,10 +2079,11 @@
 
     TargetSP target_sp(GetSP());
     SBBroadcaster broadcaster(target_sp.get(), false);
-    
+
     if (log)
-        log->Printf ("SBTarget(%p)::GetBroadcaster () => SBBroadcaster(%p)", 
-                     target_sp.get(), broadcaster.get());
+        log->Printf ("SBTarget(%p)::GetBroadcaster () => SBBroadcaster(%p)",
+                     static_cast<void*>(target_sp.get()),
+                     static_cast<void*>(broadcaster.get()));
 
     return broadcaster;
 }
@@ -2642,16 +2623,16 @@
                 log->Printf ("SBTarget::EvaluateExpression called with an empty expression");
             return expr_result;
         }
-        
+
         Mutex::Locker api_locker (target_sp->GetAPIMutex());
         ExecutionContext exe_ctx (m_opaque_sp.get());
-        
+
         if (log)
             log->Printf ("SBTarget()::EvaluateExpression (expr=\"%s\")...", expr);
-        
+
         frame = exe_ctx.GetFramePtr();
         Target *target = exe_ctx.GetTargetPtr();
-        
+
         if (target)
         {
 #ifdef LLDB_CONFIGURATION_DEBUG
@@ -2680,17 +2661,14 @@
 #ifndef LLDB_DISABLE_PYTHON
     if (expr_log)
         expr_log->Printf("** [SBTarget::EvaluateExpression] Expression result is %s, summary %s **",
-                         expr_result.GetValue(),
-                         expr_result.GetSummary());
-    
+                         expr_result.GetValue(), expr_result.GetSummary());
+
     if (log)
         log->Printf ("SBTarget(%p)::EvaluateExpression (expr=\"%s\") => SBValue(%p) (execution result=%d)",
-                     frame,
-                     expr,
-                     expr_value_sp.get(),
-                     exe_results);
+                     static_cast<void*>(frame), expr,
+                     static_cast<void*>(expr_value_sp.get()), exe_results);
 #endif
-    
+
     return expr_result;
 }
 
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index fe672d1..d9d4f14 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -120,12 +120,14 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetStopReason() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetStopReason() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
 
     if (log)
-        log->Printf ("SBThread(%p)::GetStopReason () => %s", exe_ctx.GetThreadPtr(), 
+        log->Printf ("SBThread(%p)::GetStopReason () => %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
                      Thread::StopReasonAsCString (reason));
 
     return reason;
@@ -183,7 +185,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBThread(%p)::GetStopReasonDataCount() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetStopReasonDataCount() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
     return 0;
@@ -257,7 +260,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBThread(%p)::GetStopReasonDataAtIndex() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetStopReasonDataAtIndex() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
     return 0;
@@ -284,8 +288,9 @@
                 if (stop_desc)
                 {
                     if (log)
-                        log->Printf ("SBThread(%p)::GetStopDescription (dst, dst_len) => \"%s\"", 
-                                     exe_ctx.GetThreadPtr(), stop_desc);
+                        log->Printf ("SBThread(%p)::GetStopDescription (dst, dst_len) => \"%s\"",
+                                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                                     stop_desc);
                     if (dst)
                         return ::snprintf (dst, dst_len, "%s", stop_desc);
                     else
@@ -362,19 +367,20 @@
                     default:
                         break;
                     }
-                    
+
                     if (stop_desc && stop_desc[0])
                     {
                         if (log)
-                            log->Printf ("SBThread(%p)::GetStopDescription (dst, dst_len) => '%s'", 
-                                         exe_ctx.GetThreadPtr(), stop_desc);
+                            log->Printf ("SBThread(%p)::GetStopDescription (dst, dst_len) => '%s'",
+                                         static_cast<void*>(exe_ctx.GetThreadPtr()),
+                                         stop_desc);
 
                         if (dst)
                             return ::snprintf (dst, dst_len, "%s", stop_desc) + 1; // Include the NULL byte
 
                         if (stop_desc_len == 0)
                             stop_desc_len = ::strlen (stop_desc) + 1; // Include the NULL byte
-                            
+
                         return stop_desc_len;
                     }
                 }
@@ -384,7 +390,8 @@
         {
             Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
             if (log)
-                log->Printf ("SBThread(%p)::GetStopDescription() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetStopDescription() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
     if (dst)
@@ -414,16 +421,18 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetStopReturnValue() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetStopReturnValue() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
-    
+
     if (log)
-        log->Printf ("SBThread(%p)::GetStopReturnValue () => %s", exe_ctx.GetThreadPtr(), 
-                                                                  return_valobj_sp.get() 
-                                                                      ? return_valobj_sp->GetValueAsCString() 
-                                                                        : "<no return value>");
-        
+        log->Printf ("SBThread(%p)::GetStopReturnValue () => %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     return_valobj_sp.get()
+                        ? return_valobj_sp->GetValueAsCString()
+                        : "<no return value>");
+
     return SBValue (return_valobj_sp);
 }
 
@@ -469,12 +478,15 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetName() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetName() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
-    
+
     if (log)
-        log->Printf ("SBThread(%p)::GetName () => %s", exe_ctx.GetThreadPtr(), name ? name : "NULL");
+        log->Printf ("SBThread(%p)::GetName () => %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     name ? name : "NULL");
 
     return name;
 }
@@ -497,12 +509,15 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetQueueName() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetQueueName() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
-    
+
     if (log)
-        log->Printf ("SBThread(%p)::GetQueueName () => %s", exe_ctx.GetThreadPtr(), name ? name : "NULL");
+        log->Printf ("SBThread(%p)::GetQueueName () => %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     name ? name : "NULL");
 
     return name;
 }
@@ -525,12 +540,14 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetQueueID() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetQueueID() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
-    
+
     if (log)
-        log->Printf ("SBThread(%p)::GetQueueID () => 0x%" PRIx64, exe_ctx.GetThreadPtr(), id);
+        log->Printf ("SBThread(%p)::GetQueueID () => 0x%" PRIx64,
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), id);
 
     return id;
 }
@@ -587,9 +604,10 @@
 
 
     if (log)
-        log->Printf ("SBThread(%p)::StepOver (stop_other_threads='%s')", exe_ctx.GetThreadPtr(), 
+        log->Printf ("SBThread(%p)::StepOver (stop_other_threads='%s')",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
                      Thread::RunModeAsCString (stop_other_threads));
-    
+
     if (exe_ctx.HasThreadScope())
     {
         Thread *thread = exe_ctx.GetThreadPtr();
@@ -612,8 +630,8 @@
             else
             {
                 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction (true,
-                                                                            abort_other_plans, 
-                                                                            stop_other_threads);
+                                                                               abort_other_plans,
+                                                                               stop_other_threads);
             }
         }
 
@@ -638,10 +656,10 @@
 
     if (log)
         log->Printf ("SBThread(%p)::StepInto (target_name='%s', stop_other_threads='%s')",
-                     exe_ctx.GetThreadPtr(),
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
                      target_name? target_name: "<NULL>",
                      Thread::RunModeAsCString (stop_other_threads));
-    
+
     if (exe_ctx.HasThreadScope())
     {
         bool abort_other_plans = false;
@@ -666,10 +684,10 @@
         else
         {
             new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction (false,
-                                                                        abort_other_plans, 
-                                                                        stop_other_threads);
+                                                                           abort_other_plans,
+                                                                           stop_other_threads);
         }
-        
+
         // This returns an error, we should use it!
         ResumeNewPlan (exe_ctx, new_plan_sp.get());
     }
@@ -685,8 +703,9 @@
 
 
     if (log)
-        log->Printf ("SBThread(%p)::StepOut ()", exe_ctx.GetThreadPtr());
-    
+        log->Printf ("SBThread(%p)::StepOut ()",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()));
+
     if (exe_ctx.HasThreadScope())
     {
         bool abort_other_plans = false;
@@ -696,14 +715,14 @@
 
         const LazyBool avoid_no_debug = eLazyBoolCalculate;
         ThreadPlanSP new_plan_sp(thread->QueueThreadPlanForStepOut (abort_other_plans,
-                                                                  NULL, 
-                                                                  false, 
-                                                                  stop_other_threads, 
-                                                                  eVoteYes, 
-                                                                  eVoteNoOpinion,
-                                                                  0,
-                                                                  avoid_no_debug));
-                                                                  
+                                                                    NULL,
+                                                                    false,
+                                                                    stop_other_threads,
+                                                                    eVoteYes,
+                                                                    eVoteNoOpinion,
+                                                                    0,
+                                                                    avoid_no_debug));
+
         // This returns an error, we should use it!
         ResumeNewPlan (exe_ctx, new_plan_sp.get());
     }
@@ -722,7 +741,10 @@
     {
         SBStream frame_desc_strm;
         sb_frame.GetDescription (frame_desc_strm);
-        log->Printf ("SBThread(%p)::StepOutOfFrame (frame = SBFrame(%p): %s)", exe_ctx.GetThreadPtr(), frame_sp.get(), frame_desc_strm.GetData());
+        log->Printf ("SBThread(%p)::StepOutOfFrame (frame = SBFrame(%p): %s)",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     static_cast<void*>(frame_sp.get()),
+                     frame_desc_strm.GetData());
     }
 
     if (exe_ctx.HasThreadScope())
@@ -732,13 +754,13 @@
         Thread *thread = exe_ctx.GetThreadPtr();
 
         ThreadPlanSP new_plan_sp(thread->QueueThreadPlanForStepOut (abort_other_plans,
-                                                                    NULL, 
-                                                                    false, 
-                                                                    stop_other_threads, 
-                                                                    eVoteYes, 
+                                                                    NULL,
+                                                                    false,
+                                                                    stop_other_threads,
+                                                                    eVoteYes,
                                                                     eVoteNoOpinion,
                                                                     frame_sp->GetFrameIndex()));
-                                                                    
+
         // This returns an error, we should use it!
         ResumeNewPlan (exe_ctx, new_plan_sp.get());
     }
@@ -755,13 +777,14 @@
 
 
     if (log)
-        log->Printf ("SBThread(%p)::StepInstruction (step_over=%i)", exe_ctx.GetThreadPtr(), step_over);
-    
+        log->Printf ("SBThread(%p)::StepInstruction (step_over=%i)",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), step_over);
+
     if (exe_ctx.HasThreadScope())
     {
         Thread *thread = exe_ctx.GetThreadPtr();
         ThreadPlanSP new_plan_sp(thread->QueueThreadPlanForStepSingleInstruction (step_over, true, true));
-        
+
         // This returns an error, we should use it!
         ResumeNewPlan (exe_ctx, new_plan_sp.get());
     }
@@ -777,8 +800,9 @@
 
 
     if (log)
-        log->Printf ("SBThread(%p)::RunToAddress (addr=0x%" PRIx64 ")", exe_ctx.GetThreadPtr(), addr);
-    
+        log->Printf ("SBThread(%p)::RunToAddress (addr=0x%" PRIx64 ")",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), addr);
+
     if (exe_ctx.HasThreadScope())
     {
         bool abort_other_plans = false;
@@ -789,7 +813,7 @@
         Thread *thread = exe_ctx.GetThreadPtr();
 
         ThreadPlanSP new_plan_sp(thread->QueueThreadPlanForRunToAddress (abort_other_plans, target_addr, stop_other_threads));
-        
+
         // This returns an error, we should use it!
         ResumeNewPlan (exe_ctx, new_plan_sp.get());
     }
@@ -803,7 +827,7 @@
     SBError sb_error;
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     char path[PATH_MAX];
-    
+
     Mutex::Locker api_locker;
     ExecutionContext exe_ctx (m_opaque_sp.get(), api_locker);
 
@@ -814,11 +838,10 @@
         SBStream frame_desc_strm;
         sb_frame.GetDescription (frame_desc_strm);
         sb_file_spec->GetPath (path, sizeof(path));
-        log->Printf ("SBThread(%p)::StepOverUntil (frame = SBFrame(%p): %s, file+line = %s:%u)", 
-                     exe_ctx.GetThreadPtr(), 
-                     frame_sp.get(), 
-                     frame_desc_strm.GetData(),
-                     path, line);
+        log->Printf ("SBThread(%p)::StepOverUntil (frame = SBFrame(%p): %s, file+line = %s:%u)",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     static_cast<void*>(frame_sp.get()),
+                     frame_desc_strm.GetData(), path, line);
     }
 
     if (exe_ctx.HasThreadScope())
@@ -831,14 +854,14 @@
             sb_error.SetErrorString("invalid line argument");
             return sb_error;
         }
-        
+
         if (!frame_sp)
         {
             frame_sp = thread->GetSelectedFrame ();
             if (!frame_sp)
                 frame_sp = thread->GetStackFrameAtIndex (0);
         }
-    
+
         SymbolContext frame_sc;
         if (!frame_sp)        
         {
@@ -851,13 +874,13 @@
                                                eSymbolContextFunction  | 
                                                eSymbolContextLineEntry | 
                                                eSymbolContextSymbol    );
-                                               
+
         if (frame_sc.comp_unit == NULL)
         {
             sb_error.SetErrorStringWithFormat("frame %u doesn't have debug information", frame_sp->GetFrameIndex());
             return sb_error;
         }
-        
+
         FileSpec step_file_spec;
         if (sb_file_spec.IsValid())
         {
@@ -874,15 +897,15 @@
                 return sb_error;
             }
         }
-    
+
         // Grab the current function, then we will make sure the "until" address is
         // within the function.  We discard addresses that are out of the current
         // function, and then if there are no addresses remaining, give an appropriate
         // error message.
-        
+
         bool all_in_function = true;
         AddressRange fun_range = frame_sc.function->GetAddressRange();
-        
+
         std::vector<addr_t> step_over_until_addrs;
         const bool abort_other_plans = false;
         const bool stop_other_threads = false;
@@ -914,7 +937,7 @@
                 }
             }
         }
-        
+
         if (step_over_until_addrs.empty())
         {
             if (all_in_function)
@@ -953,7 +976,9 @@
     ExecutionContext exe_ctx (m_opaque_sp.get(), api_locker);
 
     if (log)
-        log->Printf ("SBThread(%p)::JumpToLine (file+line = %s:%u)", exe_ctx.GetThreadPtr(), file_spec->GetPath().c_str(), line);
+        log->Printf ("SBThread(%p)::JumpToLine (file+line = %s:%u)",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     file_spec->GetPath().c_str(), line);
 
     if (!exe_ctx.HasThreadScope())
     {
@@ -972,7 +997,7 @@
 SBThread::ReturnFromFrame (SBFrame &frame, SBValue &return_value)
 {
     SBError sb_error;
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
 
     Mutex::Locker api_locker;
@@ -980,14 +1005,16 @@
 
 
     if (log)
-        log->Printf ("SBThread(%p)::ReturnFromFrame (frame=%d)", exe_ctx.GetThreadPtr(), frame.GetFrameID());
-    
+        log->Printf ("SBThread(%p)::ReturnFromFrame (frame=%d)",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     frame.GetFrameID());
+
     if (exe_ctx.HasThreadScope())
     {
         Thread *thread = exe_ctx.GetThreadPtr();
         sb_error.SetError (thread->ReturnFromFrame(frame.GetFrameSP(), return_value.GetSP()));
     }
-    
+
     return sb_error;
 }
 
@@ -1009,11 +1036,13 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::Suspend() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::Suspend() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
     if (log)
-        log->Printf ("SBThread(%p)::Suspend() => %i", exe_ctx.GetThreadPtr(), result);
+        log->Printf ("SBThread(%p)::Suspend() => %i",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), result);
     return result;
 }
 
@@ -1035,11 +1064,13 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::Resume() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::Resume() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
     if (log)
-        log->Printf ("SBThread(%p)::Resume() => %i", exe_ctx.GetThreadPtr(), result);
+        log->Printf ("SBThread(%p)::Resume() => %i",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), result);
     return result;
 }
 
@@ -1077,8 +1108,10 @@
     {
         SBStream frame_desc_strm;
         sb_process.GetDescription (frame_desc_strm);
-        log->Printf ("SBThread(%p)::GetProcess () => SBProcess(%p): %s", exe_ctx.GetThreadPtr(),
-                     sb_process.GetSP().get(), frame_desc_strm.GetData());
+        log->Printf ("SBThread(%p)::GetProcess () => SBProcess(%p): %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     static_cast<void*>(sb_process.GetSP().get()),
+                     frame_desc_strm.GetData());
     }
 
     return sb_process;
@@ -1103,12 +1136,14 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetNumFrames() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetNumFrames() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
 
     if (log)
-        log->Printf ("SBThread(%p)::GetNumFrames () => %u", exe_ctx.GetThreadPtr(), num_frames);
+        log->Printf ("SBThread(%p)::GetNumFrames () => %u",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), num_frames);
 
     return num_frames;
 }
@@ -1134,7 +1169,8 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetFrameAtIndex() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetFrameAtIndex() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
 
@@ -1142,8 +1178,10 @@
     {
         SBStream frame_desc_strm;
         sb_frame.GetDescription (frame_desc_strm);
-        log->Printf ("SBThread(%p)::GetFrameAtIndex (idx=%d) => SBFrame(%p): %s", 
-                     exe_ctx.GetThreadPtr(), idx, frame_sp.get(), frame_desc_strm.GetData());
+        log->Printf ("SBThread(%p)::GetFrameAtIndex (idx=%d) => SBFrame(%p): %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), idx,
+                     static_cast<void*>(frame_sp.get()),
+                     frame_desc_strm.GetData());
     }
 
     return sb_frame;
@@ -1170,7 +1208,8 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetSelectedFrame() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetSelectedFrame() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
 
@@ -1178,8 +1217,10 @@
     {
         SBStream frame_desc_strm;
         sb_frame.GetDescription (frame_desc_strm);
-        log->Printf ("SBThread(%p)::GetSelectedFrame () => SBFrame(%p): %s", 
-                     exe_ctx.GetThreadPtr(), frame_sp.get(), frame_desc_strm.GetData());
+        log->Printf ("SBThread(%p)::GetSelectedFrame () => SBFrame(%p): %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()),
+                     static_cast<void*>(frame_sp.get()),
+                     frame_desc_strm.GetData());
     }
 
     return sb_frame;
@@ -1211,7 +1252,8 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::SetSelectedFrame() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::SetSelectedFrame() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
 
@@ -1219,8 +1261,10 @@
     {
         SBStream frame_desc_strm;
         sb_frame.GetDescription (frame_desc_strm);
-        log->Printf ("SBThread(%p)::SetSelectedFrame (idx=%u) => SBFrame(%p): %s", 
-                     exe_ctx.GetThreadPtr(), idx, frame_sp.get(), frame_desc_strm.GetData());
+        log->Printf ("SBThread(%p)::SetSelectedFrame (idx=%u) => SBFrame(%p): %s",
+                     static_cast<void*>(exe_ctx.GetThreadPtr()), idx,
+                     static_cast<void*>(frame_sp.get()),
+                     frame_desc_strm.GetData());
     }
     return sb_frame;
 }
@@ -1323,7 +1367,11 @@
                                 const char *queue_name = new_thread_sp->GetQueueName();
                                 if (queue_name == NULL)
                                     queue_name = "";
-                                log->Printf ("SBThread(%p)::GetExtendedBacktraceThread() => new extended Thread created (%p) with queue_id 0x%" PRIx64 " queue name '%s'", exe_ctx.GetThreadPtr(), new_thread_sp.get(), new_thread_sp->GetQueueID(), queue_name);
+                                log->Printf ("SBThread(%p)::GetExtendedBacktraceThread() => new extended Thread created (%p) with queue_id 0x%" PRIx64 " queue name '%s'",
+                                             static_cast<void*>(exe_ctx.GetThreadPtr()),
+                                             static_cast<void*>(new_thread_sp.get()),
+                                             new_thread_sp->GetQueueID(),
+                                             queue_name);
                             }
                         }
                     }
@@ -1333,14 +1381,14 @@
         else
         {
             if (log)
-                log->Printf ("SBThread(%p)::GetExtendedBacktraceThread() => error: process is running", exe_ctx.GetThreadPtr());
+                log->Printf ("SBThread(%p)::GetExtendedBacktraceThread() => error: process is running",
+                             static_cast<void*>(exe_ctx.GetThreadPtr()));
         }
     }
 
     if (log && sb_origin_thread.IsValid() == false)
-    {
-        log->Printf("SBThread(%p)::GetExtendedBacktraceThread() is not returning a Valid thread", exe_ctx.GetThreadPtr());
-    }
+        log->Printf("SBThread(%p)::GetExtendedBacktraceThread() is not returning a Valid thread",
+                    static_cast<void*>(exe_ctx.GetThreadPtr()));
     return sb_origin_thread;
 }
 
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index c379508..f171d23 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -58,7 +58,7 @@
     ValueImpl ()
     {
     }
-    
+
     ValueImpl (lldb::ValueObjectSP in_valobj_sp,
                lldb::DynamicValueType use_dynamic,
                bool use_synthetic,
@@ -71,7 +71,7 @@
         if (!m_name.IsEmpty() && m_valobj_sp)
             m_valobj_sp->SetName(m_name);
     }
-    
+
     ValueImpl (const ValueImpl& rhs) :
     m_valobj_sp(rhs.m_valobj_sp),
     m_use_dynamic(rhs.m_use_dynamic),
@@ -79,7 +79,7 @@
     m_name (rhs.m_name)
     {
     }
-    
+
     ValueImpl &
     operator = (const ValueImpl &rhs)
     {
@@ -92,7 +92,7 @@
         }
         return *this;
     }
-    
+
     bool
     IsValid ()
     {
@@ -115,13 +115,13 @@
                 return false;
         }
     }
-    
+
     lldb::ValueObjectSP
     GetRootSP ()
     {
         return m_valobj_sp;
     }
-    
+
     lldb::ValueObjectSP
     GetSP (Process::StopLocker &stop_locker, Mutex::Locker &api_locker, Error &error)
     {
@@ -131,26 +131,27 @@
             error.SetErrorString("invalid value object");
             return m_valobj_sp;
         }
-        
+
         lldb::ValueObjectSP value_sp = m_valobj_sp;
-        
+
         Target *target = value_sp->GetTargetSP().get();
         if (target)
             api_locker.Lock(target->GetAPIMutex());
         else
             return ValueObjectSP();
-        
+
         ProcessSP process_sp(value_sp->GetProcessSP());
         if (process_sp && !stop_locker.TryLock (&process_sp->GetRunLock()))
         {
             // We don't allow people to play around with ValueObject if the process is running.
             // If you want to look at values, pause the process, then look.
             if (log)
-                log->Printf ("SBValue(%p)::GetSP() => error: process is running", value_sp.get());
+                log->Printf ("SBValue(%p)::GetSP() => error: process is running",
+                             static_cast<void*>(value_sp.get()));
             error.SetErrorString ("process must be stopped.");
             return ValueObjectSP();
         }
-        
+
         if (value_sp->GetDynamicValue(m_use_dynamic))
             value_sp = value_sp->GetDynamicValue(m_use_dynamic);
         if (value_sp->GetSyntheticValue(m_use_synthetic))
@@ -159,34 +160,34 @@
             error.SetErrorString("invalid value object");
         if (!m_name.IsEmpty())
             value_sp->SetName(m_name);
-        
+
         return value_sp;
     }
-    
+
     void
     SetUseDynamic (lldb::DynamicValueType use_dynamic)
     {
         m_use_dynamic = use_dynamic;
     }
-    
+
     void
     SetUseSynthetic (bool use_synthetic)
     {
         m_use_synthetic = use_synthetic;
     }
-    
+
     lldb::DynamicValueType
     GetUseDynamic ()
     {
         return m_use_dynamic;
     }
-    
+
     bool
     GetUseSynthetic ()
     {
         return m_use_synthetic;
     }
-    
+
     // All the derived values that we would make from the m_valobj_sp will share
     // the ExecutionContext with m_valobj_sp, so we don't need to do the calculations
     // in GetSP to return the Target, Process, Thread or Frame.  It is convenient to
@@ -199,7 +200,7 @@
         else
             return TargetSP();
     }
-    
+
     ProcessSP
     GetProcessSP ()
     {
@@ -208,7 +209,7 @@
         else
             return ProcessSP();
     }
-    
+
     ThreadSP
     GetThreadSP ()
     {
@@ -217,7 +218,7 @@
         else
             return ThreadSP();
     }
-    
+
     StackFrameSP
     GetFrameSP ()
     {
@@ -226,7 +227,7 @@
         else
             return StackFrameSP();
     }
-    
+
 private:
     lldb::ValueObjectSP m_valobj_sp;
     lldb::DynamicValueType m_use_dynamic;
@@ -337,16 +338,18 @@
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
         name = value_sp->GetName().GetCString();
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
     {
         if (name)
-            log->Printf ("SBValue(%p)::GetName () => \"%s\"", value_sp.get(), name);
+            log->Printf ("SBValue(%p)::GetName () => \"%s\"",
+                         static_cast<void*>(value_sp.get()), name);
         else
-            log->Printf ("SBValue(%p)::GetName () => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetName () => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
-    
+
     return name;
 }
 
@@ -361,15 +364,17 @@
     {
         name = value_sp->GetQualifiedTypeName().GetCString();
     }
-    
+
     if (log)
     {
         if (name)
-            log->Printf ("SBValue(%p)::GetTypeName () => \"%s\"", value_sp.get(), name);
+            log->Printf ("SBValue(%p)::GetTypeName () => \"%s\"",
+                         static_cast<void*>(value_sp.get()), name);
         else
-            log->Printf ("SBValue(%p)::GetTypeName () => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetTypeName () => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
-    
+
     return name;
 }
 
@@ -378,17 +383,19 @@
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     size_t result = 0;
-    
+
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
     {
         result = value_sp->GetByteSize();
     }
-    
+
     if (log)
-        log->Printf ("SBValue(%p)::GetByteSize () => %" PRIu64, value_sp.get(), (uint64_t)result);
-    
+        log->Printf ("SBValue(%p)::GetByteSize () => %" PRIu64,
+                     static_cast<void*>(value_sp.get()),
+                     static_cast<uint64_t>(result));
+
     return result;
 }
 
@@ -396,18 +403,19 @@
 SBValue::IsInScope ()
 {
     bool result = false;
-    
+
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
     {
         result = value_sp->IsInScope ();
     }
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBValue(%p)::IsInScope () => %i", value_sp.get(), result);
-    
+        log->Printf ("SBValue(%p)::IsInScope () => %i",
+                     static_cast<void*>(value_sp.get()), result);
+
     return result;
 }
 
@@ -415,7 +423,7 @@
 SBValue::GetValue ()
 {
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     const char *cstr = NULL;
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
@@ -426,11 +434,13 @@
     if (log)
     {
         if (cstr)
-            log->Printf ("SBValue(%p)::GetValue() => \"%s\"", value_sp.get(), cstr);
+            log->Printf ("SBValue(%p)::GetValue() => \"%s\"",
+                         static_cast<void*>(value_sp.get()), cstr);
         else
-            log->Printf ("SBValue(%p)::GetValue() => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetValue() => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
-    
+
     return cstr;
 }
 
@@ -442,20 +452,44 @@
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
         result = value_sp->GetValueType();
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
     {
         switch (result)
         {
-            case eValueTypeInvalid:         log->Printf ("SBValue(%p)::GetValueType () => eValueTypeInvalid", value_sp.get()); break;
-            case eValueTypeVariableGlobal:  log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableGlobal", value_sp.get()); break;
-            case eValueTypeVariableStatic:  log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableStatic", value_sp.get()); break;
-            case eValueTypeVariableArgument:log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableArgument", value_sp.get()); break;
-            case eValueTypeVariableLocal:   log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableLocal", value_sp.get()); break;
-            case eValueTypeRegister:        log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegister", value_sp.get()); break;
-            case eValueTypeRegisterSet:     log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegisterSet", value_sp.get()); break;
-            case eValueTypeConstResult:     log->Printf ("SBValue(%p)::GetValueType () => eValueTypeConstResult", value_sp.get()); break;
+            case eValueTypeInvalid:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeInvalid",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeVariableGlobal:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableGlobal",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeVariableStatic:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableStatic",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeVariableArgument:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableArgument",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeVariableLocal:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeVariableLocal",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeRegister:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegister",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeRegisterSet:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeRegisterSet",
+                             static_cast<void*>(value_sp.get()));
+                break;
+            case eValueTypeConstResult:
+                log->Printf ("SBValue(%p)::GetValueType () => eValueTypeConstResult",
+                             static_cast<void*>(value_sp.get()));
+                break;
         }
     }
     return result;
@@ -475,9 +509,11 @@
     if (log)
     {
         if (cstr)
-            log->Printf ("SBValue(%p)::GetObjectDescription() => \"%s\"", value_sp.get(), cstr);
+            log->Printf ("SBValue(%p)::GetObjectDescription() => \"%s\"",
+                         static_cast<void*>(value_sp.get()), cstr);
         else
-            log->Printf ("SBValue(%p)::GetObjectDescription() => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetObjectDescription() => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
     return cstr;
 }
@@ -498,9 +534,12 @@
     if (log)
     {
         if (type_sp)
-            log->Printf ("SBValue(%p)::GetType => SBType(%p)", value_sp.get(), type_sp.get());
+            log->Printf ("SBValue(%p)::GetType => SBType(%p)",
+                         static_cast<void*>(value_sp.get()),
+                         static_cast<void*>(type_sp.get()));
         else
-            log->Printf ("SBValue(%p)::GetType => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetType => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
     return sb_type;
 }
@@ -517,8 +556,9 @@
         result = value_sp->GetValueDidChange ();
     }
     if (log)
-        log->Printf ("SBValue(%p)::GetValueDidChange() => %i", value_sp.get(), result);
-    
+        log->Printf ("SBValue(%p)::GetValueDidChange() => %i",
+                     static_cast<void*>(value_sp.get()), result);
+
     return result;
 }
 
@@ -537,9 +577,11 @@
     if (log)
     {
         if (cstr)
-            log->Printf ("SBValue(%p)::GetSummary() => \"%s\"", value_sp.get(), cstr);
+            log->Printf ("SBValue(%p)::GetSummary() => \"%s\"",
+                         static_cast<void*>(value_sp.get()), cstr);
         else
-            log->Printf ("SBValue(%p)::GetSummary() => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetSummary() => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
     return cstr;
 }
@@ -559,9 +601,11 @@
     if (log)
     {
         if (cstr)
-            log->Printf ("SBValue(%p)::GetLocation() => \"%s\"", value_sp.get(), cstr);
+            log->Printf ("SBValue(%p)::GetLocation() => \"%s\"",
+                         static_cast<void*>(value_sp.get()), cstr);
         else
-            log->Printf ("SBValue(%p)::GetLocation() => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::GetLocation() => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
     return cstr;
 }
@@ -587,10 +631,11 @@
     }
     else
         error.SetErrorStringWithFormat ("Could not get value: %s", locker.GetError().AsCString());
-    
+
     if (log)
-        log->Printf ("SBValue(%p)::SetValueFromCString(\"%s\") => %i", value_sp.get(), value_str, success);
-    
+        log->Printf ("SBValue(%p)::SetValueFromCString(\"%s\") => %i",
+                     static_cast<void*>(value_sp.get()), value_str, success);
+
     return success;
 }
 
@@ -698,11 +743,11 @@
     {
         if (new_value_sp)
             log->Printf ("SBValue(%p)::CreateChildAtOffset => \"%s\"",
-                         value_sp.get(),
+                         static_cast<void*>(value_sp.get()),
                          new_value_sp->GetName().AsCString());
         else
             log->Printf ("SBValue(%p)::CreateChildAtOffset => NULL",
-                         value_sp.get());
+                         static_cast<void*>(value_sp.get()));
     }
     return sb_value;
 }
@@ -757,15 +802,11 @@
     {
         if (new_value_sp)
             log->Printf ("SBValue(%p)::CreateValueFromExpression(name=\"%s\", expression=\"%s\") => SBValue (%p)",
-                         value_sp.get(),
-                         name,
-                         expression,
-                         new_value_sp.get());
+                         static_cast<void*>(value_sp.get()), name, expression,
+                         static_cast<void*>(new_value_sp.get()));
         else
             log->Printf ("SBValue(%p)::CreateValueFromExpression(name=\"%s\", expression=\"%s\") => NULL",
-                         value_sp.get(),
-                         name,
-                         expression);
+                         static_cast<void*>(value_sp.get()), name, expression);
     }
     return sb_value;
 }
@@ -784,7 +825,7 @@
         if (pointer_ast_type)
         {
             lldb::DataBufferSP buffer(new lldb_private::DataBufferHeap(&address,sizeof(lldb::addr_t)));
-            
+
             ExecutionContext exe_ctx (value_sp->GetExecutionContextRef());
             ValueObjectSP ptr_result_valobj_sp(ValueObjectConstResult::Create (exe_ctx.GetBestExecutionContextScope(),
                                                                                pointer_ast_type,
@@ -792,7 +833,7 @@
                                                                                buffer,
                                                                                exe_ctx.GetByteOrder(),
                                                                                exe_ctx.GetAddressByteSize()));
-            
+
             if (ptr_result_valobj_sp)
             {
                 ptr_result_valobj_sp->GetValue().SetValueType(Value::eValueTypeLoadAddress);
@@ -808,9 +849,12 @@
     if (log)
     {
         if (new_value_sp)
-            log->Printf ("SBValue(%p)::CreateValueFromAddress => \"%s\"", value_sp.get(), new_value_sp->GetName().AsCString());
+            log->Printf ("SBValue(%p)::CreateValueFromAddress => \"%s\"",
+                         static_cast<void*>(value_sp.get()),
+                         new_value_sp->GetName().AsCString());
         else
-            log->Printf ("SBValue(%p)::CreateValueFromAddress => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::CreateValueFromAddress => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
     return sb_value;
 }
@@ -825,7 +869,7 @@
     if (value_sp)
     {
         ExecutionContext exe_ctx (value_sp->GetExecutionContextRef());
-        
+
         new_value_sp = ValueObjectConstResult::Create (exe_ctx.GetBestExecutionContextScope(),
                                                        type.m_opaque_sp->GetClangASTType(false),
                                                        ConstString(name),
@@ -838,9 +882,12 @@
     if (log)
     {
         if (new_value_sp)
-            log->Printf ("SBValue(%p)::CreateValueFromData => \"%s\"", value_sp.get(), new_value_sp->GetName().AsCString());
+            log->Printf ("SBValue(%p)::CreateValueFromData => \"%s\"",
+                         static_cast<void*>(value_sp.get()),
+                         new_value_sp->GetName().AsCString());
         else
-            log->Printf ("SBValue(%p)::CreateValueFromData => NULL", value_sp.get());
+            log->Printf ("SBValue(%p)::CreateValueFromData => NULL",
+                         static_cast<void*>(value_sp.get()));
     }
     return sb_value;
 }
@@ -865,7 +912,7 @@
 {
     lldb::ValueObjectSP child_sp;
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
@@ -884,12 +931,14 @@
             }
         }
     }
-    
+
     SBValue sb_value;
     sb_value.SetSP (child_sp, use_dynamic, GetPreferSyntheticValue());
     if (log)
-        log->Printf ("SBValue(%p)::GetChildAtIndex (%u) => SBValue(%p)", value_sp.get(), idx, value_sp.get());
-    
+        log->Printf ("SBValue(%p)::GetChildAtIndex (%u) => SBValue(%p)",
+                     static_cast<void*>(value_sp.get()), idx,
+                     static_cast<void*>(value_sp.get()));
+
     return sb_value;
 }
 
@@ -907,9 +956,11 @@
     if (log)
     {
         if (idx == UINT32_MAX)
-            log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => NOT FOUND", value_sp.get(), name);
+            log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => NOT FOUND",
+                         static_cast<void*>(value_sp.get()), name);
         else
-            log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => %u", value_sp.get(), name, idx);
+            log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => %u",
+                         static_cast<void*>(value_sp.get()), name, idx);
     }
     return idx;
 }
@@ -921,7 +972,7 @@
     TargetSP target_sp;
     if (m_opaque_sp)
         target_sp = m_opaque_sp->GetTargetSP();
-    
+
     if (target_sp)
         use_dynamic_value = target_sp->GetPreferDynamicValue();
     return GetChildMemberWithName (name, use_dynamic_value);
@@ -932,22 +983,24 @@
 {
     lldb::ValueObjectSP child_sp;
     const ConstString str_name (name);
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
-    
+
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
     {
         child_sp = value_sp->GetChildMemberWithName (str_name, true);
     }
-    
+
     SBValue sb_value;
     sb_value.SetSP(child_sp, use_dynamic_value, GetPreferSyntheticValue());
-    
+
     if (log)
-        log->Printf ("SBValue(%p)::GetChildMemberWithName (name=\"%s\") => SBValue(%p)", value_sp.get(), name, value_sp.get());
-    
+        log->Printf ("SBValue(%p)::GetChildMemberWithName (name=\"%s\") => SBValue(%p)",
+                     static_cast<void*>(value_sp.get()), name,
+                     static_cast<void*>(value_sp.get()));
+
     return sb_value;
 }
 
@@ -1049,13 +1102,15 @@
         // using default values for all the fancy options, just do it if you can
         child_sp = value_sp->GetValueForExpressionPath(expr_path);
     }
-    
+
     SBValue sb_value;
     sb_value.SetSP(child_sp,GetPreferDynamicValue(),GetPreferSyntheticValue());
-    
+
     if (log)
-        log->Printf ("SBValue(%p)::GetValueForExpressionPath (expr_path=\"%s\") => SBValue(%p)", value_sp.get(), expr_path, value_sp.get());
-    
+        log->Printf ("SBValue(%p)::GetValueForExpressionPath (expr_path=\"%s\") => SBValue(%p)",
+                     static_cast<void*>(value_sp.get()), expr_path,
+                     static_cast<void*>(value_sp.get()));
+
     return sb_value;
 }
 
@@ -1134,9 +1189,10 @@
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
         has_children = value_sp->MightHaveChildren();
-    
+
     if (log)
-        log->Printf ("SBValue(%p)::MightHaveChildren() => %i", value_sp.get(), has_children);
+        log->Printf ("SBValue(%p)::MightHaveChildren() => %i",
+                     static_cast<void*>(value_sp.get()), has_children);
     return has_children;
 }
 
@@ -1144,16 +1200,17 @@
 SBValue::GetNumChildren ()
 {
     uint32_t num_children = 0;
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
         num_children = value_sp->GetNumChildren();
-    
+
     if (log)
-        log->Printf ("SBValue(%p)::GetNumChildren () => %u", value_sp.get(), num_children);
-    
+        log->Printf ("SBValue(%p)::GetNumChildren () => %u",
+                     static_cast<void*>(value_sp.get()), num_children);
+
     return num_children;
 }
 
@@ -1171,8 +1228,10 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBValue(%p)::Dereference () => SBValue(%p)", value_sp.get(), value_sp.get());
-    
+        log->Printf ("SBValue(%p)::Dereference () => SBValue(%p)",
+                     static_cast<void*>(value_sp.get()),
+                     static_cast<void*>(value_sp.get()));
+
     return sb_value;
 }
 
@@ -1180,17 +1239,17 @@
 SBValue::TypeIsPointerType ()
 {
     bool is_ptr_type = false;
-    
+
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     if (value_sp)
         is_ptr_type = value_sp->IsPointerType();
-    
+
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBValue(%p)::TypeIsPointerType () => %i", value_sp.get(), is_ptr_type);
-    
-    
+        log->Printf ("SBValue(%p)::TypeIsPointerType () => %i",
+                     static_cast<void*>(value_sp.get()), is_ptr_type);
+
     return is_ptr_type;
 }
 
@@ -1218,9 +1277,12 @@
     if (log)
     {
         if (target_sp.get() == NULL)
-            log->Printf ("SBValue(%p)::GetTarget () => NULL", m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetTarget () => NULL",
+                         static_cast<void*>(m_opaque_sp.get()));
         else
-            log->Printf ("SBValue(%p)::GetTarget () => %p", m_opaque_sp.get(), target_sp.get());
+            log->Printf ("SBValue(%p)::GetTarget () => %p",
+                         static_cast<void*>(m_opaque_sp.get()),
+                         static_cast<void*>(target_sp.get()));
     }
     return sb_target;
 }
@@ -1239,9 +1301,12 @@
     if (log)
     {
         if (process_sp.get() == NULL)
-            log->Printf ("SBValue(%p)::GetProcess () => NULL", m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetProcess () => NULL",
+                         static_cast<void*>(m_opaque_sp.get()));
         else
-            log->Printf ("SBValue(%p)::GetProcess () => %p", m_opaque_sp.get(), process_sp.get());
+            log->Printf ("SBValue(%p)::GetProcess () => %p",
+                         static_cast<void*>(m_opaque_sp.get()),
+                         static_cast<void*>(process_sp.get()));
     }
     return sb_process;
 }
@@ -1260,9 +1325,12 @@
     if (log)
     {
         if (thread_sp.get() == NULL)
-            log->Printf ("SBValue(%p)::GetThread () => NULL", m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetThread () => NULL",
+                         static_cast<void*>(m_opaque_sp.get()));
         else
-            log->Printf ("SBValue(%p)::GetThread () => %p", m_opaque_sp.get(), thread_sp.get());
+            log->Printf ("SBValue(%p)::GetThread () => %p",
+                         static_cast<void*>(m_opaque_sp.get()),
+                         static_cast<void*>(thread_sp.get()));
     }
     return sb_thread;
 }
@@ -1281,9 +1349,12 @@
     if (log)
     {
         if (frame_sp.get() == NULL)
-            log->Printf ("SBValue(%p)::GetFrame () => NULL", m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetFrame () => NULL",
+                         static_cast<void*>(m_opaque_sp.get()));
         else
-            log->Printf ("SBValue(%p)::GetFrame () => %p", m_opaque_sp.get(), frame_sp.get());
+            log->Printf ("SBValue(%p)::GetFrame () => %p",
+                         static_cast<void*>(m_opaque_sp.get()),
+                         static_cast<void*>(frame_sp.get()));
     }
     return sb_frame;
 }
@@ -1450,8 +1521,10 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBValue(%p)::AddressOf () => SBValue(%p)", value_sp.get(), value_sp.get());
-    
+        log->Printf ("SBValue(%p)::AddressOf () => SBValue(%p)",
+                     static_cast<void*>(value_sp.get()),
+                     static_cast<void*>(value_sp.get()));
+
     return sb_value;
 }
 
@@ -1487,8 +1560,9 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBValue(%p)::GetLoadAddress () => (%" PRIu64 ")", value_sp.get(), value);
-    
+        log->Printf ("SBValue(%p)::GetLoadAddress () => (%" PRIu64 ")",
+                     static_cast<void*>(value_sp.get()), value);
+
     return value;
 }
 
@@ -1524,8 +1598,11 @@
     }
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBValue(%p)::GetAddress () => (%s,%" PRIu64 ")", value_sp.get(),
-                     (addr.GetSection() ? addr.GetSection()->GetName().GetCString() : "NULL"),
+        log->Printf ("SBValue(%p)::GetAddress () => (%s,%" PRIu64 ")",
+                     static_cast<void*>(value_sp.get()),
+                     (addr.GetSection()
+                        ? addr.GetSection()->GetName().GetCString()
+                        : "NULL"),
                      addr.GetOffset());
     return SBAddress(new Address(addr));
 }
@@ -1551,11 +1628,9 @@
     }
     if (log)
         log->Printf ("SBValue(%p)::GetPointeeData (%d, %d) => SBData(%p)",
-                     value_sp.get(),
-                     item_idx,
-                     item_count,
-                     sb_data.get());
-    
+                     static_cast<void*>(value_sp.get()), item_idx, item_count,
+                     static_cast<void*>(sb_data.get()));
+
     return sb_data;
 }
 
@@ -1576,9 +1651,9 @@
     }
     if (log)
         log->Printf ("SBValue(%p)::GetData () => SBData(%p)",
-                     value_sp.get(),
-                     sb_data.get());
-    
+                     static_cast<void*>(value_sp.get()),
+                     static_cast<void*>(sb_data.get()));
+
     return sb_data;
 }
 
@@ -1589,25 +1664,26 @@
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
     bool ret = true;
-    
+
     if (value_sp)
     {
         DataExtractor *data_extractor = data.get();
-        
+
         if (!data_extractor)
         {
             if (log)
-                log->Printf ("SBValue(%p)::SetData() => error: no data to set", value_sp.get());
-            
+                log->Printf ("SBValue(%p)::SetData() => error: no data to set",
+                             static_cast<void*>(value_sp.get()));
+
             error.SetErrorString("No data to set");
             ret = false;
         }
         else
         {
             Error set_error;
-            
+
             value_sp->SetData(*data_extractor, set_error);
-            
+
             if (!set_error.Success())
             {
                 error.SetErrorStringWithFormat("Couldn't set data: %s", set_error.AsCString());
@@ -1620,12 +1696,11 @@
         error.SetErrorStringWithFormat ("Couldn't set data: could not get SBValue: %s", locker.GetError().AsCString());
         ret = false;
     }
-    
+
     if (log)
         log->Printf ("SBValue(%p)::SetData (%p) => %s",
-                     value_sp.get(),
-                     data.get(),
-                     ret ? "true" : "false");
+                     static_cast<void*>(value_sp.get()),
+                     static_cast<void*>(data.get()), ret ? "true" : "false");
     return ret;
 }
 
@@ -1648,7 +1723,7 @@
 SBValue::Watch (bool resolve_location, bool read, bool write, SBError &error)
 {
     SBWatchpoint sb_watchpoint;
-    
+
     // If the SBValue is not valid, there's no point in even trying to watch it.
     ValueLocker locker;
     lldb::ValueObjectSP value_sp(GetSP(locker));
@@ -1658,29 +1733,29 @@
         // Read and Write cannot both be false.
         if (!read && !write)
             return sb_watchpoint;
-        
+
         // If the value is not in scope, don't try and watch and invalid value
         if (!IsInScope())
             return sb_watchpoint;
-        
+
         addr_t addr = GetLoadAddress();
         if (addr == LLDB_INVALID_ADDRESS)
             return sb_watchpoint;
         size_t byte_size = GetByteSize();
         if (byte_size == 0)
             return sb_watchpoint;
-        
+
         uint32_t watch_type = 0;
         if (read)
             watch_type |= LLDB_WATCH_TYPE_READ;
         if (write)
             watch_type |= LLDB_WATCH_TYPE_WRITE;
-        
+
         Error rc;
         ClangASTType type (value_sp->GetClangType());
         WatchpointSP watchpoint_sp = target_sp->CreateWatchpoint(addr, byte_size, &type, watch_type, rc);
         error.SetError(rc);
-        
+
         if (watchpoint_sp)
         {
             sb_watchpoint.SetSP (watchpoint_sp);
@@ -1701,18 +1776,21 @@
     {
         Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
         if (log)
-            log->Printf ("SBValue(%p)::Watch() => error getting SBValue: %s", value_sp.get(), locker.GetError().AsCString());
-        
+            log->Printf ("SBValue(%p)::Watch() => error getting SBValue: %s",
+                         static_cast<void*>(value_sp.get()),
+                         locker.GetError().AsCString());
+
         error.SetErrorStringWithFormat("could not get SBValue: %s", locker.GetError().AsCString());
     }
     else
     {
         Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
         if (log)
-            log->Printf ("SBValue(%p)::Watch() => error getting SBValue: no target", value_sp.get());
+            log->Printf ("SBValue(%p)::Watch() => error getting SBValue: no target",
+                         static_cast<void*>(value_sp.get()));
         error.SetErrorString("could not set watchpoint, a target is required");
     }
-    
+
     return sb_watchpoint;
 }
 
diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp
index 46866eb..5069ed3 100644
--- a/lldb/source/API/SBValueList.cpp
+++ b/lldb/source/API/SBValueList.cpp
@@ -99,8 +99,8 @@
     if (log)
     {
         log->Printf ("SBValueList::SBValueList (rhs.ap=%p) => this.ap = %p",
-                     (rhs.IsValid() ? rhs.m_opaque_ap.get() : NULL), 
-                     m_opaque_ap.get());
+                     static_cast<void*>(rhs.IsValid() ? rhs.m_opaque_ap.get() : NULL),
+                     static_cast<void*>(m_opaque_ap.get()));
     }
 }
 
@@ -114,9 +114,9 @@
 
     if (log)
     {
-        log->Printf ("SBValueList::SBValueList (lldb_object_ptr=%p) => this.ap = %p", 
-                     lldb_object_ptr, 
-                     m_opaque_ap.get());
+        log->Printf ("SBValueList::SBValueList (lldb_object_ptr=%p) => this.ap = %p",
+                     static_cast<const void*>(lldb_object_ptr),
+                     static_cast<void*>(m_opaque_ap.get()));
     }
 }
 
@@ -218,7 +218,8 @@
         SBStream sstr;
         sb_value.GetDescription (sstr);
         log->Printf ("SBValueList::GetValueAtIndex (this.ap=%p, idx=%d) => SBValue (this.sp = %p, '%s')", 
-                     m_opaque_ap.get(), idx, sb_value.GetSP().get(), sstr.GetData());
+                     static_cast<void*>(m_opaque_ap.get()), idx,
+                     static_cast<void*>(sb_value.GetSP().get()), sstr.GetData());
     }
 
     return sb_value;
@@ -237,7 +238,8 @@
         size = m_opaque_ap->GetSize();
 
     if (log)
-        log->Printf ("SBValueList::GetSize (this.ap=%p) => %d", m_opaque_ap.get(), size);
+        log->Printf ("SBValueList::GetSize (this.ap=%p) => %d",
+                     static_cast<void*>(m_opaque_ap.get()), size);
 
     return size;
 }
diff --git a/lldb/source/API/SBWatchpoint.cpp b/lldb/source/API/SBWatchpoint.cpp
index 194695c..1a1a970 100644
--- a/lldb/source/API/SBWatchpoint.cpp
+++ b/lldb/source/API/SBWatchpoint.cpp
@@ -42,7 +42,9 @@
         SBStream sstr;
         GetDescription (sstr, lldb::eDescriptionLevelBrief);
         log->Printf ("SBWatchpoint::SBWatchpoint (const lldb::WatchpointSP &wp_sp"
-                     "=%p)  => this.sp = %p (%s)", wp_sp.get(), m_opaque_sp.get(), sstr.GetData());
+                     "=%p)  => this.sp = %p (%s)",
+                     static_cast<void*>(wp_sp.get()),
+                     static_cast<void*>(m_opaque_sp.get()), sstr.GetData());
     }
 }
 
@@ -77,9 +79,11 @@
     if (log)
     {
         if (watch_id == LLDB_INVALID_WATCH_ID)
-            log->Printf ("SBWatchpoint(%p)::GetID () => LLDB_INVALID_WATCH_ID", watchpoint_sp.get());
+            log->Printf ("SBWatchpoint(%p)::GetID () => LLDB_INVALID_WATCH_ID",
+                         static_cast<void*>(watchpoint_sp.get()));
         else
-            log->Printf ("SBWatchpoint(%p)::GetID () => %u", watchpoint_sp.get(), watch_id);
+            log->Printf ("SBWatchpoint(%p)::GetID () => %u",
+                         static_cast<void*>(watchpoint_sp.get()), watch_id);
     }
 
     return watch_id;
@@ -185,7 +189,8 @@
 
     Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
     if (log)
-        log->Printf ("SBWatchpoint(%p)::GetHitCount () => %u", watchpoint_sp.get(), count);
+        log->Printf ("SBWatchpoint(%p)::GetHitCount () => %u",
+                     static_cast<void*>(watchpoint_sp.get()), count);
 
     return count;
 }