summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-04-17 09:45:48 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-04-21 10:32:33 +0300
commit22589b0b30862be1fa8137bd16a79f9824de8e84 (patch)
treeeb67b0705091f941a8b61cb14dcc19b321eb270d
parentac95d1a691332934fae7ea5ee3a17be35228d480 (diff)
kmsprint: use Videomode::to_string_long
-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)