diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-27 00:45:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 00:45:10 +0200 |
commit | 6a3d59fdc103c1a254a8d83115957a1d4671d322 (patch) | |
tree | ad4c0c1e03d94197d8382b76e6e0d30d55cec0c6 /src/core/frontend/input.h | |
parent | Merge pull request #399 from bunnei/shader-ints (diff) | |
parent | core: Replace remaining old non-generic logger usages with fmt-capable equivalents (diff) | |
download | yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.gz yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.bz2 yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.lz yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.xz yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.tar.zst yuzu-6a3d59fdc103c1a254a8d83115957a1d4671d322.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/frontend/input.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index 8c256beb5..79e52488f 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h @@ -59,7 +59,7 @@ template <typename InputDeviceType> void RegisterFactory(const std::string& name, std::shared_ptr<Factory<InputDeviceType>> factory) { auto pair = std::make_pair(name, std::move(factory)); if (!Impl::FactoryList<InputDeviceType>::list.insert(std::move(pair)).second) { - LOG_ERROR(Input, "Factory %s already registered", name.c_str()); + NGLOG_ERROR(Input, "Factory '{}' already registered", name); } } @@ -71,7 +71,7 @@ void RegisterFactory(const std::string& name, std::shared_ptr<Factory<InputDevic template <typename InputDeviceType> void UnregisterFactory(const std::string& name) { if (Impl::FactoryList<InputDeviceType>::list.erase(name) == 0) { - LOG_ERROR(Input, "Factory %s not registered", name.c_str()); + NGLOG_ERROR(Input, "Factory '{}' not registered", name); } } @@ -88,7 +88,7 @@ std::unique_ptr<InputDeviceType> CreateDevice(const std::string& params) { const auto pair = factory_list.find(engine); if (pair == factory_list.end()) { if (engine != "null") { - LOG_ERROR(Input, "Unknown engine name: %s", engine.c_str()); + NGLOG_ERROR(Input, "Unknown engine name: {}", engine); } return std::make_unique<InputDeviceType>(); } |