Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a162be1d authored by Christopher Ferris's avatar Christopher Ferris Committed by android-build-merger
Browse files

Merge "Fix error printing code." am: b0c5cd27 am: d460e78d

am: 2bf21dad

Change-Id: I230b27e24f5c5efb0cf6eb5004a4a02b9cf87517
parents 9708d221 2bf21dad
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
            }