Merge "bionic: ReadPadSegmentNote: Fix print format warnings" into main am: ec49465334
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2963403 Change-Id: I26e1d9cbf4a5ef9c413cb8041c1e75f2b40c96be Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f32740277e
1 changed files with 3 additions and 2 deletions
|
@ -728,8 +728,9 @@ bool ElfReader::ReadPadSegmentNote() {
|
|||
// at most 1 PT_NOTE mapped at anytime during this search.
|
||||
MappedFileFragment note_fragment;
|
||||
if (!note_fragment.Map(fd_, file_offset_, phdr->p_offset, phdr->p_memsz)) {
|
||||
DL_ERR("\"%s\": PT_NOTE mmap(nullptr, %zu, PROT_READ, MAP_PRIVATE, %d, %p) failed: %m",
|
||||
name_.c_str(), phdr->p_memsz, fd_, page_start(file_offset_ + phdr->p_offset));
|
||||
DL_ERR("\"%s\": PT_NOTE mmap(nullptr, %p, PROT_READ, MAP_PRIVATE, %d, %p) failed: %m",
|
||||
name_.c_str(), reinterpret_cast<void*>(phdr->p_memsz), fd_,
|
||||
reinterpret_cast<void*>(page_start(file_offset_ + phdr->p_offset)));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue