From 4617fec97044f28afd7c579656b978c98127bd0c Mon Sep 17 00:00:00 2001 From: Daniel Lim Wee Soong Date: Sun, 25 Mar 2018 17:46:02 +0800 Subject: [PATCH] input_common: Migrate logging macros Follow-up of #3533 Replace logging to use NGLOG instead of LOG --- src/input_common/sdl/sdl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input_common/sdl/sdl.cpp b/src/input_common/sdl/sdl.cpp index 3b87d6b65..66240b903 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(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("sdl", std::make_shared());