[Lldb-commits] [lldb] 080fa1e - [lldb] Use LLDB_LOGF for printf format strings in AppleObjCDeclVendor.cpp

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Sat Jun 24 15:02:07 PDT 2023


Author: Dave Lee
Date: 2023-06-24T15:02:01-07:00
New Revision: 080fa1ee38d65c84212fa5eb19c43bc10637fd75

URL: https://github.com/llvm/llvm-project/commit/080fa1ee38d65c84212fa5eb19c43bc10637fd75
DIFF: https://github.com/llvm/llvm-project/commit/080fa1ee38d65c84212fa5eb19c43bc10637fd75.diff

LOG: [lldb] Use LLDB_LOGF for printf format strings in AppleObjCDeclVendor.cpp

Added: 
    

Modified: 
    lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
index 4d6c86f7d28ce..2764a2aa39fa1 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));


        


More information about the lldb-commits mailing list