diff options
| author | Luke Drummond <luke.drummond@codeplay.com> | 2016-07-28 18:19:33 +0000 |
|---|---|---|
| committer | Luke Drummond <luke.drummond@codeplay.com> | 2016-07-28 18:19:33 +0000 |
| commit | 51524b755616c9562a00371b1539784320c0b504 (patch) | |
| tree | e912617bb0dc5f07bd4b3101394f4330b602d6f9 | |
| parent | 84149c45bf338caff5fa06109a5d9da0372fdb60 (diff) | |
| download | bcm5719-llvm-51524b755616c9562a00371b1539784320c0b504.tar.gz bcm5719-llvm-51524b755616c9562a00371b1539784320c0b504.zip | |
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
llvm-svn: 277016
| -rw-r--r-- | lldb/source/Core/ValueObjectSyntheticFilter.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/lldb/source/Core/ValueObjectSyntheticFilter.cpp b/lldb/source/Core/ValueObjectSyntheticFilter.cpp index f2f233711b9..27e6264652d 100644 --- a/lldb/source/Core/ValueObjectSyntheticFilter.cpp +++ b/lldb/source/Core/ValueObjectSyntheticFilter.cpp @@ -271,12 +271,11 @@ ValueObjectSynthetic::GetChildAtIndex (size_t idx, bool can_create) 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 (size_t idx, bool can_create) 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 (size_t idx, bool can_create) { 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(); } |

