Merge "Fix error printing code."

am: b0c5cd27a1

Change-Id: I2b81c0eaf3724807731644f0bef17c9d84766988
This commit is contained in:
Christopher Ferris 2019-07-08 17:13:32 -07:00 committed by android-build-merger
commit d460e78d87
1 changed files with 4 additions and 4 deletions

View File

@ -312,12 +312,12 @@ bool ProcMemInfo::ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_
cur_page * sizeof(uint64_t));
if (bytes != total_bytes) {
if (bytes == -1) {
PLOG(ERROR) << "Failed to read page data at offset "
PLOG(ERROR) << "Failed to read page data at offset 0x" << std::hex
<< cur_page * sizeof(uint64_t);
} else {
LOG(ERROR) << "Failed to read page data at offset "
<< cur_page * sizeof(uint64_t) << " read bytes " << sizeof(uint64_t)
<< " expected bytes " << bytes;
LOG(ERROR) << "Failed to read page data at offset 0x" << std::hex
<< cur_page * sizeof(uint64_t) << std::dec << " read bytes " << bytes
<< " expected bytes " << total_bytes;
}
return false;
}