aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Lee <davelee.com@gmail.com>2023-06-24 15:00:38 -0700
committerDave Lee <davelee.com@gmail.com>2023-06-24 15:02:01 -0700
commit080fa1ee38d65c84212fa5eb19c43bc10637fd75 (patch)
tree4fdb8b62cee70de27911150830d8c727773159a5
parent08be7791e195272dca8c9ecb075aa3d86569f9f8 (diff)
downloadllvm-080fa1ee38d65c84212fa5eb19c43bc10637fd75.zip
llvm-080fa1ee38d65c84212fa5eb19c43bc10637fd75.tar.gz
llvm-080fa1ee38d65c84212fa5eb19c43bc10637fd75.tar.bz2
[lldb] Use LLDB_LOGF for printf format strings in AppleObjCDeclVendor.cpp
-rw-r--r--lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
index 4d6c86f..2764a2a 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
@@ -502,10 +502,10 @@ bool AppleObjCDeclVendor::FinishDecl(clang::ObjCInterfaceDecl *interface_decl) {
return false;
};
- LLDB_LOG(log,
- "[AppleObjCDeclVendor::FinishDecl] Finishing Objective-C "
- "interface for %s",
- descriptor->GetClassName().AsCString());
+ LLDB_LOGF(log,
+ "[AppleObjCDeclVendor::FinishDecl] Finishing Objective-C "
+ "interface for %s",
+ descriptor->GetClassName().AsCString());
if (!descriptor->Describe(superclass_func, instance_method_func,
class_method_func, ivar_func))
@@ -563,9 +563,9 @@ uint32_t AppleObjCDeclVendor::FindDecls(ConstString name, bool append,
if (metadata)
isa_value = metadata->GetISAPtr();
- LLDB_LOG(log,
- "AOCTV::FT Found %s (isa 0x%" PRIx64 ") in the ASTContext",
- result_iface_type.getAsString(), isa_value);
+ LLDB_LOGF(log,
+ "AOCTV::FT Found %s (isa 0x%" PRIx64 ") in the ASTContext",
+ result_iface_type.getAsString().data(), isa_value);
}
decls.push_back(m_ast_ctx->GetCompilerDecl(result_iface_decl));