Skip to content

Commit 50db70a

Browse files
Rahul BanerjeeAndroid (Google) Code Review
authored andcommitted
Merge "Fix field widths in dump, so as to make columns line up." into main
2 parents d039048 + c65685b commit 50db70a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/ui/GraphicBufferAllocator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ void GraphicBufferAllocator::dump(std::string& result, bool less) const {
8989
uint64_t total = 0;
9090
result.append("GraphicBufferAllocator buffers:\n");
9191
const size_t count = list.size();
92-
StringAppendF(&result, "%14s | %11s | %18s | %s | %8s | %10s | %s\n", "Handle", "Size",
92+
StringAppendF(&result, "%18s | %12s | %18s | %s | %8s | %10s | %s\n", "Handle", "Size",
9393
"W (Stride) x H", "Layers", "Format", "Usage", "Requestor");
9494
for (size_t i = 0; i < count; i++) {
9595
const alloc_rec_t& rec(list.valueAt(i));
9696
std::string sizeStr = (rec.size)
9797
? base::StringPrintf("%7.2f KiB", static_cast<double>(rec.size) / 1024.0)
9898
: "unknown";
99-
StringAppendF(&result, "%14p | %11s | %4u (%4u) x %4u | %6u | %8X | 0x%8" PRIx64 " | %s\n",
99+
StringAppendF(&result, "%18p | %12s | %4u (%4u) x %4u | %6u | %8X | 0x%8" PRIx64 " | %s\n",
100100
list.keyAt(i), sizeStr.c_str(), rec.width, rec.stride, rec.height,
101101
rec.layerCount, rec.format, rec.usage, rec.requestorName.c_str());
102102
total += rec.size;

0 commit comments

Comments
 (0)