forked from OSchip/llvm-project
[lldb] Fix warning in MinidumpFileBuilder.cpp
Fixes the following warning: $llvm_project/lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp:744:11: warning: format specifies type 'long' but the argument has type 'lldb::offset_t' (aka 'unsigned long long') [-Wformat] m_data.GetByteSize()); ^~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
6775ad2025
commit
c4fa2c8aa4
|
@ -740,7 +740,7 @@ Status MinidumpFileBuilder::Dump(lldb::FileUP &core_file) const {
|
|||
if (error.Fail() || bytes_written != m_data.GetByteSize()) {
|
||||
if (bytes_written != m_data.GetByteSize())
|
||||
error.SetErrorStringWithFormat(
|
||||
"Unable to write the data. (written %ld/%ld).", bytes_written,
|
||||
"Unable to write the data. (written %ld/%llu).", bytes_written,
|
||||
m_data.GetByteSize());
|
||||
return error;
|
||||
}
|
||||
|
@ -767,4 +767,4 @@ size_t MinidumpFileBuilder::GetDirectoriesNum() const {
|
|||
|
||||
size_t MinidumpFileBuilder::GetCurrentDataEndOffset() const {
|
||||
return sizeof(llvm::minidump::Header) + m_data.GetByteSize();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue