Update declarations for all functions/methods that accept printf-style
stdarg formats to use __attribute__ format so the compiler can flag
incorrect uses.  Fix all incorrect uses.  Most of these are innocuous,
a few were resulting in crashes.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140185 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBValue.cpp b/source/API/SBValue.cpp
index 6fba661..f190585 100644
--- a/source/API/SBValue.cpp
+++ b/source/API/SBValue.cpp
@@ -106,7 +106,7 @@
         if (name)
             log->Printf ("SBValue(%p)::GetName () => \"%s\"", m_opaque_sp.get(), name);
         else
-            log->Printf ("SBValue(%p)::GetName () => NULL", m_opaque_sp.get(), name);
+            log->Printf ("SBValue(%p)::GetName () => NULL", m_opaque_sp.get());
     }
 
     return name;
@@ -357,7 +357,7 @@
     if (log)
     {
         if (result.IsValid())
-            log->Printf ("SBValue(%p)::GetChildAtOffset => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetChildAtOffset => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp->GetName().AsCString());
         else
             log->Printf ("SBValue(%p)::GetChildAtOffset => NULL", m_opaque_sp.get());
     }
@@ -391,7 +391,7 @@
     if (log)
     {
         if (result.IsValid())
-            log->Printf ("SBValue(%p)::GetChildFromExpression => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetChildFromExpression => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp->GetName().AsCString());
         else
             log->Printf ("SBValue(%p)::GetChildFromExpression => NULL", m_opaque_sp.get());
     }
@@ -433,7 +433,7 @@
     if (log)
     {
         if (result.IsValid())
-            log->Printf ("SBValue(%p)::GetChildFromAddress => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetChildFromAddress => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp->GetName().AsCString());
         else
             log->Printf ("SBValue(%p)::GetChildFromAddress => NULL", m_opaque_sp.get());
     }
@@ -463,7 +463,7 @@
     if (log)
     {
         if (result.IsValid())
-            log->Printf ("SBValue(%p)::GetChildFromExpression => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp.get());
+            log->Printf ("SBValue(%p)::GetChildFromExpression => \"%s\"", m_opaque_sp.get(), result.m_opaque_sp->GetName().AsCString());
         else
             log->Printf ("SBValue(%p)::GetChildFromExpression => NULL", m_opaque_sp.get());
     }
@@ -541,7 +541,7 @@
     if (log)
     {
         if (idx == UINT32_MAX)
-            log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => NOT FOUND", m_opaque_sp.get(), name, idx);
+            log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => NOT FOUND", m_opaque_sp.get(), name);
         else
             log->Printf ("SBValue(%p)::GetIndexOfChildWithName (name=\"%s\") => %u", m_opaque_sp.get(), name, idx);
     }