aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-07-27 18:06:06 +0900
committerKen Wakasa <kwakasa@google.com>2012-07-27 18:06:06 +0900
commite3f26dd21e16a7d8c23a95a5084947e54ba598e1 (patch)
tree16fc884400fd9f31c55580aee7f066d4cd6dc367 /native/jni/src
parent42e7a1e5c14c2ca0d171fb8f3266f4f6546332f7 (diff)
downloadlatinime-e3f26dd21e16a7d8c23a95a5084947e54ba598e1.tar.gz
latinime-e3f26dd21e16a7d8c23a95a5084947e54ba598e1.tar.xz
latinime-e3f26dd21e16a7d8c23a95a5084947e54ba598e1.zip
Fix native debug log
Change-Id: If19f808522a5a35fa06c2825fcd0d92e6e4a0631
Diffstat (limited to 'native/jni/src')
-rw-r--r--native/jni/src/defines.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/native/jni/src/defines.h b/native/jni/src/defines.h
index a4086f58d..05b997d59 100644
--- a/native/jni/src/defines.h
+++ b/native/jni/src/defines.h
@@ -19,9 +19,12 @@
#define LATINIME_DEFINES_H
#if defined(FLAG_DO_PROFILE) || defined(FLAG_DBG)
-#include <cutils/log.h>
-#define AKLOGE ALOGE
-#define AKLOGI ALOGI
+#include <android/log.h>
+#ifndef LOG_TAG
+#define LOG_TAG "LatinIME: "
+#endif
+#define AKLOGE(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, fmt, ##__VA_ARGS__)
+#define AKLOGI(fmt, ...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, fmt, ##__VA_ARGS__)
#define DUMP_WORD(word, length) do { dumpWord(word, length); } while(0)
#define DUMP_WORD_INT(word, length) do { dumpWordInt(word, length); } while(0)
@@ -116,10 +119,6 @@ static inline void prof_out(void) {
#endif // FLAG_DO_PROFILE
#ifdef FLAG_DBG
-#include <cutils/log.h>
-#ifndef LOG_TAG
-#define LOG_TAG "LatinIME: "
-#endif
#define DEBUG_DICT true
#define DEBUG_DICT_FULL false
#define DEBUG_EDIT_DISTANCE false
@@ -146,7 +145,6 @@ static inline void prof_out(void) {
#define DEBUG_CORRECTION_FREQ false
#define DEBUG_WORDS_PRIORITY_QUEUE false
-
#endif // FLAG_DBG
#ifndef U_SHORT_MAX