From aa2bb79c8788b0f8f76c473c6264d2ae4128c1d8 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 13 Oct 2014 15:03:59 +0000 Subject: [PATCH] input: tweak warning messages. --- src/input/controller.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/input/controller.cpp b/src/input/controller.cpp index 7d448e1c..164b517c 100644 --- a/src/input/controller.cpp +++ b/src/input/controller.cpp @@ -22,7 +22,7 @@ void KeyBinding::Bind(const String& device_name, const String& key_name) if (!device) { - Log::Warn("Trying to bind key to nonexistent input device %s", + Log::Warn("trying to bind key to nonexistent input device %s\n", device_name.C()); return; } @@ -30,7 +30,7 @@ void KeyBinding::Bind(const String& device_name, const String& key_name) int keyindex = device->GetKeyIndex(key_name); if (keyindex < 0) { - Log::Warn("Trying to bind nonexistent key %s.%s", + Log::Warn("trying to bind nonexistent key %s.%s\n", device_name.C(), key_name.C()); return; } @@ -67,7 +67,7 @@ void AxisBinding::Bind(const String& device_name, const String& axis_name) const InputDevice* device = InputDevice::Get(device_name); if (!device) { - Log::Warn("Trying to bind axis to nonexistent input device %s", + Log::Warn("trying to bind axis to nonexistent input device %s\n", device_name.C()); return; } @@ -75,7 +75,7 @@ void AxisBinding::Bind(const String& device_name, const String& axis_name) int axisindex = device->GetAxisIndex(axis_name); if (axisindex < 0) { - Log::Warn("Trying to bind nonexistent axis %s.%s", + Log::Warn("trying to bind nonexistent axis %s.%s\n", device_name.C(), axis_name.C()); return; } @@ -88,7 +88,7 @@ void AxisBinding::BindKey(const String& device_name, const String& key_name) const InputDevice* device = InputDevice::Get(device_name); if (!device) { - Log::Warn("Trying to bind axis key to nonexistent input device %s", + Log::Warn("trying to bind axis key to nonexistent input device %s\n", device_name.C()); return; } @@ -96,7 +96,7 @@ void AxisBinding::BindKey(const String& device_name, const String& key_name) int keyindex = device->GetKeyIndex(key_name); if (keyindex < 0) { - Log::Warn("Trying to bind nonexistent axis key %s.%s", + Log::Warn("trying to bind nonexistent axis key %s.%s\n", device_name.C(), key_name.C()); return; } @@ -109,7 +109,7 @@ void AxisBinding::BindKeys(const String& device_name, const String& min_key_name const InputDevice* device = InputDevice::Get(device_name); if (!device) { - Log::Warn("Trying to bind axis keys to nonexistent input device %s", + Log::Warn("trying to bind axis keys to nonexistent input device %s\n", device_name.C()); return; } @@ -117,7 +117,7 @@ void AxisBinding::BindKeys(const String& device_name, const String& min_key_name int minkeyindex = device->GetKeyIndex(min_key_name); if (minkeyindex < 0) { - Log::Warn("Trying to bind nonexistent axis key %s.%s", + Log::Warn("trying to bind nonexistent axis key %s.%s\n", device_name.C(), min_key_name.C()); return; } @@ -125,7 +125,7 @@ void AxisBinding::BindKeys(const String& device_name, const String& min_key_name int maxkeyindex = device->GetKeyIndex(max_key_name); if (maxkeyindex < 0) { - Log::Warn("Trying to bind nonexistent axis key %s.%s", + Log::Warn("trying to bind nonexistent axis key %s.%s\n", device_name.C(), max_key_name.C()); return; } @@ -236,7 +236,7 @@ Controller::Controller(String const &name, int nb_keys, int nb_axis) m_active = false; if (Get(name) != nullptr) { - Log::Warn("controller ā€œ%sā€ has already been registered", name.C()); + Log::Warn("controller ā€œ%sā€ has already been registered\n", name.C()); } controllers.Push(this); }