From 187b3314ba3de083c7e54931d31486beab557441 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 1 Apr 2020 14:56:46 -0700 Subject: [PATCH] Target: print the message with formatting The message has a format specifier but was being printed unformatted. This corrects the macro usage to use the formatting version. Improves the debug logging only. --- lldb/source/Target/SwiftLanguageRuntime.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/source/Target/SwiftLanguageRuntime.cpp b/lldb/source/Target/SwiftLanguageRuntime.cpp index 56d0be4f827f0..5675fa4db9d45 100644 --- a/lldb/source/Target/SwiftLanguageRuntime.cpp +++ b/lldb/source/Target/SwiftLanguageRuntime.cpp @@ -190,9 +190,10 @@ class SwiftLanguageRuntimeStub { #define STUB_LOG() \ do { \ - LLDB_LOG(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS | \ - LIBLLDB_LOG_TYPES), \ - g_stub_log_message, GetStandardLibraryName(m_process)); \ + LLDB_LOGF(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS | \ + LIBLLDB_LOG_TYPES), \ + g_stub_log_message, \ + GetStandardLibraryName(m_process).AsCString()); \ assert(false && "called into swift language runtime stub"); \ } while (0)