Partition, ...: use libfmt for logging

This commit is contained in:
Max Kellermann
2021-06-24 20:22:48 +02:00
parent 0185d58a2b
commit 6f539cfcd6
44 changed files with 320 additions and 296 deletions

View File

@@ -558,10 +558,10 @@ Player::CheckDecoderStartup(std::unique_lock<Mutex> &lock) noexcept
}
if (!paused && !OpenOutput()) {
FormatError(player_domain,
"problems opening audio device "
"while playing \"%s\"",
dc.song->GetURI());
FmtError(player_domain,
"problems opening audio device "
"while playing \"{}\"",
dc.song->GetURI());
return true;
}
@@ -964,7 +964,7 @@ Player::SongBorder() noexcept
{
const ScopeUnlock unlock(pc.mutex);
FormatNotice(player_domain, "played \"%s\"", song->GetURI());
FmtNotice(player_domain, "played \"{}\"", song->GetURI());
ReplacePipe(dc.pipe);
@@ -1135,7 +1135,7 @@ Player::Run() noexcept
cross_fade_tag.reset();
if (song != nullptr) {
FormatNotice(player_domain, "played \"%s\"", song->GetURI());
FmtNotice(player_domain, "played \"{}\"", song->GetURI());
song.reset();
}