diff --git a/src/ls.cxx b/src/ls.cxx index cf98a4676..f15476ca2 100644 --- a/src/ls.cxx +++ b/src/ls.cxx @@ -18,7 +18,7 @@ void print_supported_uri_schemes_to_fp(FILE *fp) { #ifdef HAVE_UN - fprintf(fp, " file://"); + fmt::print(fp, " file://"); #endif std::set> protocols; input_plugins_for_each(plugin) @@ -32,9 +32,9 @@ void print_supported_uri_schemes_to_fp(FILE *fp) }); for (const auto& protocol : protocols) { - fprintf(fp, " %s", protocol.c_str()); + fmt::print(fp, " {}", protocol); } - fprintf(fp,"\n"); + fmt::print(fp, "\n"); } void