Skip to content

Commit 06099c0

Browse files
authored
Merge pull request #1012 from compnerd/print-formatting
Target: print the message with formatting
2 parents e7ae372 + 187b331 commit 06099c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/source/Target/SwiftLanguageRuntime.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,10 @@ class SwiftLanguageRuntimeStub {
190190

191191
#define STUB_LOG() \
192192
do { \
193-
LLDB_LOG(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS | \
194-
LIBLLDB_LOG_TYPES), \
195-
g_stub_log_message, GetStandardLibraryName(m_process)); \
193+
LLDB_LOGF(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS | \
194+
LIBLLDB_LOG_TYPES), \
195+
g_stub_log_message, \
196+
GetStandardLibraryName(m_process).AsCString()); \
196197
assert(false && "called into swift language runtime stub"); \
197198
} while (0)
198199

0 commit comments

Comments
 (0)