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

@@ -38,5 +38,5 @@ LogFfmpegError(int errnum, const char *prefix)
{
char msg[256];
av_strerror(errnum, msg, sizeof(msg));
FormatError(ffmpeg_domain, "%s: %s", prefix, msg);
FmtError(ffmpeg_domain, "{}: {}", prefix, msg);
}

View File

@@ -28,5 +28,5 @@ void
LogPulseError(pa_context *context, const char *prefix) noexcept
{
const int e = pa_context_errno(context);
FormatError(pulse_domain, "%s: %s", prefix, pa_strerror(e));
FmtError(pulse_domain, "{}: {}", prefix, pa_strerror(e));
}