From b141ae7acc753481d050ebb16d20fc44000c55e7 Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Mon, 31 Oct 2022 18:37:37 +0000 Subject: kmsxx: Also report format of framebuffer Signed-off-by: Dom Cobley --- utils/kmsprint.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/kmsprint.cpp') 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) -- cgit v1.2.3