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

Commit 04511efd authored by Alec Mouri's avatar Alec Mouri
Browse files

Report gralloc4 buffer size in fixed fp notation

Scientific notation is a little harder to read.

Bug: None
Test: dumpsys SurfaceFlinger

Change-Id: Ic17052e57256aca64b6007f30b7dbfdcb09f3b65
parent 7ee38822
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -941,9 +941,10 @@ status_t Gralloc4Mapper::bufferDumpHelper(const BufferDump& bufferDump, std::ost
    }
    double allocationSizeKiB = static_cast<double>(allocationSize) / 1024;

    *outDump << "+ name:" << name << ", id:" << bufferId << ", size:" << allocationSizeKiB
             << "KiB, w/h:" << width << "x" << height << ", usage: 0x" << std::hex << usage
             << std::dec << ", req fmt:" << static_cast<int32_t>(pixelFormatRequested)
    *outDump << "+ name:" << name << ", id:" << bufferId << ", size:" << std::fixed
             << allocationSizeKiB << "KiB, w/h:" << width << "x" << height << ", usage: 0x"
             << std::hex << usage << std::dec
             << ", req fmt:" << static_cast<int32_t>(pixelFormatRequested)
             << ", fourcc/mod:" << pixelFormatFourCC << "/" << pixelFormatModifier
             << ", dataspace: 0x" << std::hex << static_cast<uint32_t>(dataspace) << std::dec
             << ", compressed: ";