diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-09-24 12:52:14 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-09-25 14:49:06 +0300 |
commit | 40bc9d1095228ab1377625be3479491263d696d7 (patch) | |
tree | 68e02263767217c5302788a7c974c3786fb9e44b /utils/wbcap.cpp | |
parent | f887436cebefd30f2bfadcfb7210703baa8ca93c (diff) |
videomode to_string improvements
Add to_string_short() and to_string_long() to videomode (using the fmt
library) for easy printing of videomodes.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils/wbcap.cpp')
-rw-r--r-- | utils/wbcap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/wbcap.cpp b/utils/wbcap.cpp index 5a94a70..886fe36 100644 --- a/utils/wbcap.cpp +++ b/utils/wbcap.cpp @@ -342,9 +342,9 @@ int main(int argc, char** argv) if (src_mode.interlace()) dst_height /= 2; - printf("src %s, crtc %s\n", src_conn->fullname().c_str(), src_mode.to_string().c_str()); + printf("src %s, crtc %s\n", src_conn->fullname().c_str(), src_mode.to_string_short().c_str()); - printf("dst %s, crtc %s\n", dst_conn->fullname().c_str(), dst_mode.to_string().c_str()); + printf("dst %s, crtc %s\n", dst_conn->fullname().c_str(), dst_mode.to_string_short().c_str()); printf("src_fb %ux%u, dst_fb %ux%u\n", src_width, src_height, dst_width, dst_height); |