From 7dd428f5c3eb6e9bf6ab2e1b902568d00f7f418d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 24 Sep 2019 17:06:10 +0300 Subject: wbm2m: use fmt::format Signed-off-by: Tomi Valkeinen --- utils/wbm2m.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/wbm2m.cpp') diff --git a/utils/wbm2m.cpp b/utils/wbm2m.cpp index 07074e5..71a26a5 100644 --- a/utils/wbm2m.cpp +++ b/utils/wbm2m.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include #include @@ -104,8 +105,8 @@ int main(int argc, char** argv) printf("%ux%u-%s -> %ux%u-%s\n", src_width, src_height, PixelFormatToFourCC(src_fmt).c_str(), dst_width, dst_height, PixelFormatToFourCC(dst_fmt).c_str()); - const string filename = sformat("wb-out-%ux%u_%4.4s.raw", dst_width, dst_height, - PixelFormatToFourCC(dst_fmt).c_str()); + const string filename = fmt::format("wb-out-{}x{}-{}.raw", dst_width, dst_height, + PixelFormatToFourCC(dst_fmt)); printf("writing to %s\n", filename.c_str()); -- cgit v1.2.3