From ed78dc8e4371b573e3daca3ee6d39231df218918 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Sat, 21 Sep 2019 19:10:00 +0000 Subject: [PATCH] [LLDB] Use SetErrorStringWithFormatv for cases that use LLVM style format strings SetErrorStringWithFormat only supports normal printf style format strings. Differential Revision: https://reviews.llvm.org/D67862 llvm-svn: 372485 --- lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp | 6 +++--- lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp index e5171f2..1990c6c 100644 --- a/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp @@ -177,9 +177,9 @@ Status NativeProcessWindows::Detach() { else LLDB_LOG(log, "Detaching process error: {0}", error); } else { - error.SetErrorStringWithFormat("error: process {0} in state = {1}, but " - "cannot detach it in this state.", - GetID(), state); + error.SetErrorStringWithFormatv("error: process {0} in state = {1}, but " + "cannot detach it in this state.", + GetID(), state); LLDB_LOG(log, "error: {0}", error); } return error; diff --git a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp index 461dbeb..8a06fb7 100644 --- a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp @@ -170,9 +170,9 @@ Status ProcessWindows::DoDetach(bool keep_stopped) { else LLDB_LOG(log, "Detaching process error: {0}", error); } else { - error.SetErrorStringWithFormat("error: process {0} in state = {1}, but " - "cannot detach it in this state.", - GetID(), private_state); + error.SetErrorStringWithFormatv("error: process {0} in state = {1}, but " + "cannot detach it in this state.", + GetID(), private_state); LLDB_LOG(log, "error: {0}", error); } return error; -- 2.7.4