summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDom Cobley <popcornmix@gmail.com>2022-10-31 18:37:37 +0000
committerDom Cobley <popcornmix@gmail.com>2022-11-01 16:36:59 +0000
commitb141ae7acc753481d050ebb16d20fc44000c55e7 (patch)
tree11fb83368c80c055330131e7f94952abaaff75d2 /utils
parent0f3534d3be5750ff9cb03cb997a8efc91de07347 (diff)
kmsxx: Also report format of framebuffer
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/kmsprint.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index 7469b47..017944b 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -120,8 +120,9 @@ static string format_plane(Plane& p)
static string format_fb(Framebuffer& fb)
{
- return fmt::format("FB {} {}x{}",
- fb.id(), fb.width(), fb.height());
+ return fmt::format("FB {} {}x{} {}",
+ fb.id(), fb.width(), fb.height(),
+ PixelFormatToFourCC(fb.format()));
}
static string format_property(const Property* prop, uint64_t val)