decoder/mad, ...: more libfmt logging

This commit is contained in:
Max Kellermann
2021-06-25 17:26:41 +02:00
parent f60a42e0b6
commit b29a43b4d7
42 changed files with 245 additions and 251 deletions

View File

@@ -101,9 +101,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
char *endptr;
unsigned value = ParseUnsigned(s, &endptr);
if (endptr == s || *endptr != 0) {
FormatWarning(pcm_decoder_domain,
"Failed to parse sample rate: %s",
s);
FmtWarning(pcm_decoder_domain,
"Failed to parse sample rate: {}",
s);
return;
}
@@ -123,9 +123,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
char *endptr;
unsigned value = ParseUnsigned(s, &endptr);
if (endptr == s || *endptr != 0) {
FormatWarning(pcm_decoder_domain,
"Failed to parse sample rate: %s",
s);
FmtWarning(pcm_decoder_domain,
"Failed to parse sample rate: {}",
s);
return;
}
@@ -146,9 +146,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
const char *s = i->second.c_str();
audio_format = ParseAudioFormat(s, false);
if (!audio_format.IsFullyDefined()) {
FormatWarning(pcm_decoder_domain,
"Invalid audio format specification: %s",
mime);
FmtWarning(pcm_decoder_domain,
"Invalid audio format specification: {}",
mime);
return;
}
}
@@ -157,9 +157,9 @@ pcm_stream_decode(DecoderClient &client, InputStream &is)
}
if (audio_format.sample_rate == 0) {
FormatWarning(pcm_decoder_domain,
"Missing 'rate' parameter: %s",
mime);
FmtWarning(pcm_decoder_domain,
"Missing 'rate' parameter: {}",
mime);
return;
}