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

@@ -22,6 +22,7 @@
#include "storage/StoragePlugin.hxx"
#include "storage/StorageInterface.hxx"
#include "storage/FileInfo.hxx"
#include "lib/fmt/ExceptionFormatter.hxx"
#include "lib/dbus/Glue.hxx"
#include "lib/dbus/AsyncRequest.hxx"
#include "lib/dbus/Message.hxx"
@@ -35,12 +36,15 @@
#include "event/Call.hxx"
#include "event/InjectEvent.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/Domain.hxx"
#include "util/StringCompare.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <stdexcept>
static constexpr Domain udisks_domain("udisks");
class UdisksStorage final : public Storage {
const std::string base_uri;
const std::string id;
@@ -87,9 +91,9 @@ public:
try {
UnmountWait();
} catch (...) {
FormatError(std::current_exception(),
"Failed to unmount '%s'",
base_uri.c_str());
FmtError(udisks_domain,
"Failed to unmount '{}': {}",
base_uri, std::current_exception());
}
}