Author: ldrumm
Date: Thu Jul 28 13:19:33 2016
New Revision: 277016

URL: http://llvm.org/viewvc/llvm-project?rev=277016&view=rev
Log:
Cleanup some format string warnings

Clean up format string warnings in ValueObjectSyntheticFilter.cpp to explictly 
cast "%p" params to void *`

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D22923

Modified:
    lldb/trunk/source/Core/ValueObjectSyntheticFilter.cpp

Modified: lldb/trunk/source/Core/ValueObjectSyntheticFilter.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObjectSyntheticFilter.cpp?rev=277016&r1=277015&r2=277016&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObjectSyntheticFilter.cpp (original)
+++ lldb/trunk/source/Core/ValueObjectSyntheticFilter.cpp Thu Jul 28 13:19:33 
2016
@@ -271,12 +271,11 @@ ValueObjectSynthetic::GetChildAtIndex (s
                             idx);
 
             lldb::ValueObjectSP synth_guy = m_synth_filter_ap->GetChildAtIndex 
(idx);
-            
+
             if (log)
-                log->Printf("[ValueObjectSynthetic::GetChildAtIndex] name=%s, 
child at index %zu created as %p (is synthetic: %s)",
-                            GetName().AsCString(),
-                            idx,
-                            synth_guy.get(),
+                log->Printf("[ValueObjectSynthetic::GetChildAtIndex] name=%s, 
child at index %zu created as %p (is "
+                            "synthetic: %s)",
+                            GetName().AsCString(), idx, static_cast<void 
*>(synth_guy.get()),
                             synth_guy.get() ? 
(synth_guy->IsSyntheticChildrenGenerated() ? "yes" : "no") : "no");
 
             if (!synth_guy)
@@ -291,11 +290,10 @@ ValueObjectSynthetic::GetChildAtIndex (s
         else
         {
             if (log)
-                log->Printf("[ValueObjectSynthetic::GetChildAtIndex] name=%s, 
child at index %zu not cached and cannot be created (can_create = %s, 
synth_filter = %p)",
-                            GetName().AsCString(),
-                            idx,
-                            can_create ? "yes" : "no",
-                            m_synth_filter_ap.get());
+                log->Printf("[ValueObjectSynthetic::GetChildAtIndex] name=%s, 
child at index %zu not cached and cannot "
+                            "be created (can_create = %s, synth_filter = %p)",
+                            GetName().AsCString(), idx, can_create ? "yes" : 
"no",
+                            static_cast<void *>(m_synth_filter_ap.get()));
 
             return lldb::ValueObjectSP();
         }
@@ -304,9 +302,7 @@ ValueObjectSynthetic::GetChildAtIndex (s
     {
         if (log)
             log->Printf("[ValueObjectSynthetic::GetChildAtIndex] name=%s, 
child at index %zu cached as %p",
-                        GetName().AsCString(),
-                        idx,
-                        valobj);
+                        GetName().AsCString(), idx, static_cast<void 
*>(valobj));
 
         return valobj->GetSP();
     }


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to