Partition, ...: use libfmt for logging
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user