Merge "bionic: ReadPadSegmentNote: Fix print format warnings" into main am: ec49465334
am: f32740277e
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2963403 Change-Id: I51a477f66e8ceee70cfed3b428a57b900666eb69 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
496b0d635f
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