summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/kmsprint.cpp9
1 files changed, 1 insertions, 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)