[lldb] Fix mac build for D117490

This is exactly that kind of a API misuse that the patch was meant to
detect.
This commit is contained in:
Pavel Labath 2022-01-25 13:41:09 +01:00
parent fc15ab7b1b
commit 345d85e124
1 changed files with 3 additions and 6 deletions

View File

@ -484,10 +484,8 @@ PlatformDarwinKernel::GetKernelsAndKextsInDirectoryHelper(
ConstString file_spec_extension = file_spec.GetFileNameExtension();
Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PLATFORM));
Log *log_verbose(GetLogIfAllCategoriesSet(LIBLLDB_LOG_PLATFORM | LLDB_LOG_OPTION_VERBOSE));
LLDB_LOGF(log_verbose, "PlatformDarwinKernel examining '%s'",
file_spec.GetPath().c_str());
LLDB_LOGV(log, "PlatformDarwinKernel examining '{0}'", file_spec);
PlatformDarwinKernel *thisp = (PlatformDarwinKernel *)baton;
@ -567,9 +565,8 @@ PlatformDarwinKernel::GetKernelsAndKextsInDirectoryHelper(
if (recurse && file_spec_extension != g_dsym_suffix &&
file_spec_extension != g_kext_suffix &&
file_spec_extension != g_bundle_suffix) {
LLDB_LOGF(log_verbose,
"PlatformDarwinKernel descending into directory '%s'",
file_spec.GetPath().c_str());
LLDB_LOGV(log, "PlatformDarwinKernel descending into directory '{0}'",
file_spec);
return FileSystem::eEnumerateDirectoryResultEnter;
} else {
return FileSystem::eEnumerateDirectoryResultNext;