Log: remove the obsolete printf-style functions

This commit is contained in:
Max Kellermann
2021-10-13 16:08:48 +02:00
parent 2fbbd540bb
commit 72f6e018e7
17 changed files with 102 additions and 283 deletions

View File

@@ -21,8 +21,12 @@
#include "thread/Name.hxx"
#include "thread/Slack.hxx"
#include "thread/Util.hxx"
#include "lib/fmt/ExceptionFormatter.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
static constexpr Domain event_domain("event");
void
EventThread::Start()
{
@@ -57,8 +61,9 @@ EventThread::Run() noexcept
try {
SetThreadRealtime();
} catch (...) {
Log(LogLevel::INFO, std::current_exception(),
"RTIOThread could not get realtime scheduling, continuing anyway");
FmtInfo(event_domain,
"RTIOThread could not get realtime scheduling, continuing anyway: %s",
std::current_exception());
}
}