*: use BufferedOutputStream::Fmt()

This commit is contained in:
Max Kellermann
2022-07-13 12:54:58 +02:00
parent 9a30286289
commit b52b0ac85a
11 changed files with 64 additions and 58 deletions

View File

@@ -43,8 +43,8 @@ audio_output_state_save(BufferedOutputStream &os,
const auto &ao = outputs.Get(i);
const std::scoped_lock<Mutex> lock(ao.mutex);
os.Format(AUDIO_DEVICE_STATE "%d:%s\n",
ao.IsEnabled(), ao.GetName());
os.Fmt(FMT_STRING(AUDIO_DEVICE_STATE "{}:{}\n"),
(unsigned)ao.IsEnabled(), ao.GetName());
}
}