File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 35
35
#include " llvm/ADT/StringExtras.h"
36
36
#include " llvm/ADT/StringRef.h"
37
37
#include " llvm/ADT/Twine.h"
38
+ #include " llvm/Support/Chrono.h"
38
39
#include " llvm/Support/Error.h"
39
40
#include " llvm/Support/ErrorHandling.h"
40
41
#include " llvm/Support/FormatVariadic.h"
@@ -976,9 +977,10 @@ lldb::SBError DAP::WaitForProcessToStop(std::chrono::seconds seconds) {
976
977
}
977
978
std::this_thread::sleep_for (std::chrono::microseconds (250 ));
978
979
}
979
- error.SetErrorStringWithFormat (" process failed to stop within %" PRId64
980
- " seconds" ,
981
- static_cast <uint64_t >(seconds.count ()));
980
+ error.SetErrorString (
981
+ llvm::formatv (" process failed to stop within {0}" , seconds)
982
+ .str ()
983
+ .c_str ());
982
984
return error;
983
985
}
984
986
You can’t perform that action at this time.
0 commit comments