From 22589b0b30862be1fa8137bd16a79f9824de8e84 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 17 Apr 2020 09:45:48 +0300 Subject: kmsprint: use Videomode::to_string_long --- utils/kmsprint.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp index 61baec0..807aa62 100644 --- a/utils/kmsprint.cpp +++ b/utils/kmsprint.cpp @@ -43,14 +43,7 @@ static string format_mode(const Videomode& m, unsigned idx) static string format_mode_short(const Videomode& m) { - string h = fmt::format("{}/{}/{}/{}", m.hdisplay, m.hfp(), m.hsw(), m.hbp()); - string v = fmt::format("{}/{}/{}/{}", m.vdisplay, m.vfp(), m.vsw(), m.vbp()); - - return fmt::format("{} {:.3f} {} {} {} ({:.2f})", - m.name, - m.clock / 1000.0, - h, v, - m.vrefresh, m.calculated_vrefresh()); + return m.to_string_long(); } static string format_connector(Connector& c) -- cgit v1.2.3