diff --git a/lldb/include/lldb/Interpreter/OptionValue.h b/lldb/include/lldb/Interpreter/OptionValue.h --- a/lldb/include/lldb/Interpreter/OptionValue.h +++ b/lldb/include/lldb/Interpreter/OptionValue.h @@ -114,8 +114,7 @@ virtual lldb::OptionValueSP GetSubValue(const ExecutionContext *exe_ctx, llvm::StringRef name, Status &error) const { - error.SetErrorStringWithFormat("'%s' is not a value subvalue", - name.str().c_str()); + error.SetErrorStringWithFormatv("'{0}' is not a valid subvalue", name); return lldb::OptionValueSP(); }