diff options
author | Martin Storsjo <martin@martin.st> | 2019-09-21 19:10:00 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2019-09-21 19:10:00 +0000 |
commit | ed78dc8e4371b573e3daca3ee6d39231df218918 (patch) | |
tree | 338d3fe56531f4b75078a01c868e52254b36955c /lldb/source/Plugins/Process/Windows | |
parent | 5c38730dbd002a9f669bf3fb3c0a8b19e84bdd97 (diff) | |
download | bcm5719-llvm-ed78dc8e4371b573e3daca3ee6d39231df218918.tar.gz bcm5719-llvm-ed78dc8e4371b573e3daca3ee6d39231df218918.zip |
[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
Diffstat (limited to 'lldb/source/Plugins/Process/Windows')
-rw-r--r-- | lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp | 6 | ||||
-rw-r--r-- | 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 e5171f2b7eb..1990c6c05c4 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 461dbebb3d8..8a06fb7ed37 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; |