Author: Keith Smiley Date: 2021-11-18T15:09:38-08:00 New Revision: 0c4464a5bd35dd865f568ed68171208e44df16c7
URL: https://github.com/llvm/llvm-project/commit/0c4464a5bd35dd865f568ed68171208e44df16c7 DIFF: https://github.com/llvm/llvm-project/commit/0c4464a5bd35dd865f568ed68171208e44df16c7.diff LOG: [lldb] Fix formatted log statement Previously this would output literally without replacements Differential Revision: https://reviews.llvm.org/D114178 Added: Modified: lldb/source/Core/Module.cpp Removed: ################################################################################ diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 283e18707dbba..bd0a667171a5a 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1627,10 +1627,10 @@ void Module::RegisterXcodeSDK(llvm::StringRef sdk_name, llvm::StringRef sysroot) bool Module::MergeArchitecture(const ArchSpec &arch_spec) { if (!arch_spec.IsValid()) return false; - LLDB_LOG(GetLogIfAllCategoriesSet(LIBLLDB_LOG_OBJECT | LIBLLDB_LOG_MODULES), - "module has arch %s, merging/replacing with arch %s", - m_arch.GetTriple().getTriple().c_str(), - arch_spec.GetTriple().getTriple().c_str()); + LLDB_LOGF(GetLogIfAllCategoriesSet(LIBLLDB_LOG_OBJECT | LIBLLDB_LOG_MODULES), + "module has arch %s, merging/replacing with arch %s", + m_arch.GetTriple().getTriple().c_str(), + arch_spec.GetTriple().getTriple().c_str()); if (!m_arch.IsCompatibleMatch(arch_spec)) { // The new architecture is diff erent, we just need to replace it. return SetArchitecture(arch_spec); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits