From 04511efdf0678d8c022313e34d0c71764495885f Mon Sep 17 00:00:00 2001 From: Alec Mouri Date: Thu, 6 Jan 2022 12:57:12 -0800 Subject: Report gralloc4 buffer size in fixed fp notation Scientific notation is a little harder to read. Bug: None Test: dumpsys SurfaceFlinger Change-Id: Ic17052e57256aca64b6007f30b7dbfdcb09f3b65 --- libs/ui/Gralloc4.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libs/ui/Gralloc4.cpp') diff --git a/libs/ui/Gralloc4.cpp b/libs/ui/Gralloc4.cpp index 8ac08fb70d..3fc99bb3fc 100644 --- a/libs/ui/Gralloc4.cpp +++ b/libs/ui/Gralloc4.cpp @@ -941,9 +941,10 @@ status_t Gralloc4Mapper::bufferDumpHelper(const BufferDump& bufferDump, std::ost } double allocationSizeKiB = static_cast(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(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(pixelFormatRequested) << ", fourcc/mod:" << pixelFormatFourCC << "/" << pixelFormatModifier << ", dataspace: 0x" << std::hex << static_cast(dataspace) << std::dec << ", compressed: "; -- cgit v1.2.3-59-g8ed1b