diff options
| author | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2011-09-20 21:44:10 +0000 |
| commit | fd54b368ea4d1bd481ac4d203362c2a5556418d0 (patch) | |
| tree | 3adaaf91c485565d39e32762804b69439977c8fd /lldb/source/API/SBValue.cpp | |
| parent | 33e91a6cf7a66b83b29e842268bf9b0a1ef14711 (diff) | |
| download | bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.tar.gz bcm5719-llvm-fd54b368ea4d1bd481ac4d203362c2a5556418d0.zip | |
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.
llvm-svn: 140185
Diffstat (limited to 'lldb/source/API/SBValue.cpp')
| -rw-r--r-- | lldb/source/API/SBValue.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index 6fba661a832..f1905856e2a 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -106,7 +106,7 @@ SBValue::GetName() 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 @@ SBValue::CreateChildAtOffset (const char *name, uint32_t offset, SBType type) 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 @@ SBValue::CreateValueFromExpression (const char *name, const char* expression) 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 @@ SBValue::CreateValueFromAddress(const char* name, lldb::addr_t address, SBType t 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 @@ SBValue::CreateValueFromData (const char* name, SBData data, SBType type) 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 @@ SBValue::GetIndexOfChildWithName (const char *name) 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); } |

