We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be7ef6c commit 9f7a587Copy full SHA for 9f7a587
lldb/tools/lldb-dap/DAP.cpp
@@ -35,6 +35,7 @@
35
#include "llvm/ADT/StringExtras.h"
36
#include "llvm/ADT/StringRef.h"
37
#include "llvm/ADT/Twine.h"
38
+#include "llvm/Support/Chrono.h"
39
#include "llvm/Support/Error.h"
40
#include "llvm/Support/ErrorHandling.h"
41
#include "llvm/Support/FormatVariadic.h"
@@ -976,9 +977,10 @@ lldb::SBError DAP::WaitForProcessToStop(std::chrono::seconds seconds) {
976
977
}
978
std::this_thread::sleep_for(std::chrono::microseconds(250));
979
- error.SetErrorStringWithFormat("process failed to stop within %" PRId64
980
- " seconds",
981
- static_cast<uint64_t>(seconds.count()));
+ error.SetErrorString(
+ llvm::formatv("process failed to stop within {0}", seconds)
982
+ .str()
983
+ .c_str());
984
return error;
985
986
0 commit comments