Skip to content

Commit d1b6007

Browse files
kazutakahirataIanWood1
authored andcommitted
[lldb] Fix a warning
This patch fixes: lldb/tools/lldb-dap/DAP.cpp:975:34: error: format specifies type 'long long' but the argument has type 'rep' (aka 'long') [-Werror,-Wformat]
1 parent 9f84066 commit d1b6007

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -971,8 +971,9 @@ lldb::SBError DAP::WaitForProcessToStop(std::chrono::seconds seconds) {
971971
}
972972
std::this_thread::sleep_for(std::chrono::microseconds(250));
973973
}
974-
error.SetErrorStringWithFormat("process failed to stop within %lld seconds",
975-
seconds.count());
974+
error.SetErrorStringWithFormat("process failed to stop within %" PRId64
975+
" seconds",
976+
static_cast<uint64_t>(seconds.count()));
976977
return error;
977978
}
978979

0 commit comments

Comments
 (0)