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 3535#include " llvm/ADT/StringExtras.h"
3636#include " llvm/ADT/StringRef.h"
3737#include " llvm/ADT/Twine.h"
38+ #include " llvm/Support/Chrono.h"
3839#include " llvm/Support/Error.h"
3940#include " llvm/Support/ErrorHandling.h"
4041#include " llvm/Support/FormatVariadic.h"
@@ -976,9 +977,10 @@ lldb::SBError DAP::WaitForProcessToStop(std::chrono::seconds seconds) {
976977 }
977978 std::this_thread::sleep_for (std::chrono::microseconds (250 ));
978979 }
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 ());
982984 return error;
983985}
984986
You can’t perform that action at this time.
0 commit comments