Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
e3f26dd2
Commit
e3f26dd2
authored
12 years ago
by
Ken Wakasa
Browse files
Options
Downloads
Patches
Plain Diff
Fix native debug log
Change-Id: If19f808522a5a35fa06c2825fcd0d92e6e4a0631
parent
42e7a1e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/Android.mk
+4
-4
4 additions, 4 deletions
native/jni/Android.mk
native/jni/src/defines.h
+6
-8
6 additions, 8 deletions
native/jni/src/defines.h
with
10 additions
and
12 deletions
native/jni/Android.mk
+
4
−
4
View file @
e3f26dd2
...
...
@@ -15,8 +15,8 @@
LOCAL_PATH
:=
$(
call my-dir
)
############ some local flags
# If you change any of those flags, you need to rebuild both libjni_latinime_static
# and the shared library.
# If you change any of those flags, you need to rebuild both libjni_latinime_
common_
static
# and the shared library
that uses libjni_latinime_common_static
.
FLAG_DBG
?=
false
FLAG_DO_PROFILE
?=
false
...
...
@@ -82,11 +82,11 @@ LOCAL_WHOLE_STATIC_LIBRARIES := libjni_latinime_common_static
ifeq
($(FLAG_DO_PROFILE), true)
$(
warning
Making profiling version of native library
)
LOCAL_SHARED_LIBRARIES
+=
lib
cutils libutils
LOCAL_SHARED_LIBRARIES
+=
lib
log
else
# FLAG_DO_PROFILE
ifeq
($(FLAG_DBG), true)
$(
warning
Making debug version of native library
)
LOCAL_SHARED_LIBRARIES
+=
lib
cutils libutils
LOCAL_SHARED_LIBRARIES
+=
lib
log
endif
# FLAG_DBG
endif
# FLAG_DO_PROFILE
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/defines.h
+
6
−
8
View file @
e3f26dd2
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment