summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-27 03:54:51 +0200
committerGitHub <noreply@github.com>2018-04-27 03:54:51 +0200
commit3e0ec3dbd7633e04f72362f581101d9d64c0ce29 (patch)
tree1f3109fb14384b13050d745e8da2dbba62035314
parentMerge pull request #402 from lioncash/core (diff)
parentinput_common: Move old logging macros over to fmt-capable ones (diff)
downloadyuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.tar
yuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.tar.gz
yuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.tar.bz2
yuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.tar.lz
yuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.tar.xz
yuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.tar.zst
yuzu-3e0ec3dbd7633e04f72362f581101d9d64c0ce29.zip
-rw-r--r--src/input_common/sdl/sdl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl.cpp b/src/input_common/sdl/sdl.cpp
index 3b87d6b65..231a0f7af 100644
--- a/src/input_common/sdl/sdl.cpp
+++ b/src/input_common/sdl/sdl.cpp
@@ -32,7 +32,7 @@ public:
explicit SDLJoystick(int joystick_index)
: joystick{SDL_JoystickOpen(joystick_index), SDL_JoystickClose} {
if (!joystick) {
- LOG_ERROR(Input, "failed to open joystick %d", joystick_index);
+ NGLOG_ERROR(Input, "failed to open joystick {}", joystick_index);
}
}
@@ -204,7 +204,7 @@ public:
trigger_if_greater = false;
} else {
trigger_if_greater = true;
- LOG_ERROR(Input, "Unknown direction %s", direction_name.c_str());
+ NGLOG_ERROR(Input, "Unknown direction '{}'", direction_name);
}
return std::make_unique<SDLAxisButton>(GetJoystick(joystick_index), axis, threshold,
trigger_if_greater);
@@ -235,7 +235,7 @@ public:
void Init() {
if (SDL_Init(SDL_INIT_JOYSTICK) < 0) {
- LOG_CRITICAL(Input, "SDL_Init(SDL_INIT_JOYSTICK) failed with: %s", SDL_GetError());
+ NGLOG_CRITICAL(Input, "SDL_Init(SDL_INIT_JOYSTICK) failed with: {}", SDL_GetError());
} else {
using namespace Input;
RegisterFactory<ButtonDevice>("sdl", std::make_shared<SDLButtonFactory>());