From e87b8e4498df3bc1fcb751dfa24816ecf1ac02bd Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 11 Feb 2021 16:05:14 +0100 Subject: [PATCH] [lldb] Log the actual expression result in UserExpression::Evaluate This used to be a LLDB_LOGF call that used the printf %s syntax. 0ab109d43d9d8389fe686ee8df4a82634f246b55 changed it to LLDB_LOG but didn't update this format string to use formatv's syntax so this just printed '%s'. --- lldb/source/Expression/UserExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Expression/UserExpression.cpp b/lldb/source/Expression/UserExpression.cpp index 5beed4657b37..c6a288a30b17 100644 --- a/lldb/source/Expression/UserExpression.cpp +++ b/lldb/source/Expression/UserExpression.cpp @@ -362,7 +362,7 @@ UserExpression::Evaluate(ExecutionContext &exe_ctx, LLDB_LOG(log, "== [UserExpression::Evaluate] Execution completed " - "normally with result %s ==", + "normally with result {0} ==", result_valobj_sp->GetValueAsCString()); } else { LLDB_LOG(log, "== [UserExpression::Evaluate] Execution completed "