Skip to content

Commit 46ac717

Browse files
Merge pull request #7134 from apple/dl/lldb-Use-correct-log-API-inSwiftLanguageRuntimeDynamicTypeResolution-NFC
[lldb] Use correct log API inSwiftLanguageRuntimeDynamicTypeResolution (NFC)
2 parents 2631202 + 655a3fd commit 46ac717

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,9 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
11121112
auto *cti = tc.getClassInstanceTypeInfo(tr, 0, &tip);
11131113
if (auto *rti =
11141114
llvm::dyn_cast_or_null<swift::reflection::RecordTypeInfo>(cti)) {
1115-
LLDB_LOG(GetLog(LLDBLog::Types),
1116-
"%s: class RecordTypeInfo(num_fields=%i)",
1117-
type.GetMangledTypeName().GetCString(), rti->getNumFields());
1115+
LLDB_LOGF(GetLog(LLDBLog::Types),
1116+
"%s: class RecordTypeInfo(num_fields=%i)",
1117+
type.GetMangledTypeName().GetCString(), rti->getNumFields());
11181118

11191119
// The superclass, if any, is an extra child.
11201120
if (builder.lookupSuperclass(tr))
@@ -1125,8 +1125,8 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
11251125
return {};
11261126
}
11271127
// FIXME: Implement more cases.
1128-
LLDB_LOG(GetLog(LLDBLog::Types), "%s: unimplemented type info",
1129-
type.GetMangledTypeName().GetCString());
1128+
LLDB_LOGF(GetLog(LLDBLog::Types), "%s: unimplemented type info",
1129+
type.GetMangledTypeName().GetCString());
11301130
return {};
11311131
}
11321132

0 commit comments

Comments
 (0)