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:
Treehugger Robot 2024-02-14 16:56:51 +00:00 committed by Automerger Merge Worker
commit 496b0d635f

View file

@ -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;
}