HardwareKeyboard: Update event logging
Use LOGERR(), consistent with rest of TWRP.
Change-Id: I75a44d807a17aea6027830d58c37ac130fee12a7
diff --git a/gui/hardwarekeyboard.cpp b/gui/hardwarekeyboard.cpp
index f831727..68be906 100644
--- a/gui/hardwarekeyboard.cpp
+++ b/gui/hardwarekeyboard.cpp
@@ -37,6 +37,7 @@
#include "../common.h"
}
+#include "../twcommon.h"
#include "objects.hpp"
#include <linux/input.h>
@@ -361,7 +362,7 @@
#ifdef _EVENT_LOGGING
default:
- LOGE("Unmapped keycode: %i\n", key_code);
+ LOGERR("Unmapped keycode: %i\n", key_code);
break;
#endif
}
@@ -384,7 +385,7 @@
int HardwareKeyboard::KeyDown(int key_code)
{
#ifdef _EVENT_LOGGING
- LOGE("HardwareKeyboard::KeyDown %i\n", key_code);
+ LOGERR("HardwareKeyboard::KeyDown %i\n", key_code);
#endif
key_code = TranslateKeyCode(key_code);
mPressedKeys.insert(key_code);
@@ -410,7 +411,7 @@
int HardwareKeyboard::KeyUp(int key_code)
{
#ifdef _EVENT_LOGGING
- LOGE("HardwareKeyboard::KeyUp %i\n", key_code);
+ LOGERR("HardwareKeyboard::KeyUp %i\n", key_code);
#endif
key_code = TranslateKeyCode(key_code);
std::set<int>::iterator itr = mPressedKeys.find(key_code);
@@ -424,7 +425,7 @@
int HardwareKeyboard::KeyRepeat()
{
#ifdef _EVENT_LOGGING
- LOGE("HardwareKeyboard::KeyRepeat: %i\n", mLastKeyChar);
+ LOGERR("HardwareKeyboard::KeyRepeat: %i\n", mLastKeyChar);
#endif
if (mLastKeyChar)
PageManager::NotifyCharInput(mLastKeyChar);