diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-07 02:15:59 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-07 02:33:42 +0200 |
commit | 8ba203c726df97039125ad8b3223802fc80a9110 (patch) | |
tree | dfa4c183d6476d95b069e6d1409817ea19282d8b /sal/osl | |
parent | SALEVENT_COUNT is unused (diff) | |
download | core-8ba203c726df97039125ad8b3223802fc80a9110.tar.gz core-8ba203c726df97039125ad8b3223802fc80a9110.zip |
Use __android_log_print directly
Change-Id: I67d90eb58faa0427c4de894eac107cc2d05a3477
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/thread.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sal/osl/unx/thread.c b/sal/osl/unx/thread.c index 034ca81bbc69..0e1ebbab7f02 100644 --- a/sal/osl/unx/thread.c +++ b/sal/osl/unx/thread.c @@ -30,6 +30,7 @@ #include <sal/macros.h> #ifdef ANDROID #include <jni.h> +#include <android/log.h> #include <osl/detail/android-bootstrap.h> #endif @@ -242,20 +243,16 @@ static void* osl_thread_start_Impl (void* pData) if (!terminate) { #ifdef ANDROID - { - JNIEnv* env = 0; - int res = (*lo_get_javavm())->AttachCurrentThread(lo_get_javavm(), &env, NULL); // res == 0 - fprintf (stderr, "new sal thread started and attached %d!\n", res); - } + JNIEnv* env = 0; + int res = (*lo_get_javavm())->AttachCurrentThread(lo_get_javavm(), &env, NULL); + __android_log_print(ANDROID_LOG_INFO, "LibreOffice", "New sal thread started and attached res=%d", res); #endif /* call worker function */ pImpl->m_WorkerFunction(pImpl->m_pData); #ifdef ANDROID - { - int res = (*lo_get_javavm())->DetachCurrentThread(lo_get_javavm()); - fprintf (stderr, "detached finished sal thread %d!\n", res); - } + res = (*lo_get_javavm())->DetachCurrentThread(lo_get_javavm()); + __android_log_print(ANDROID_LOG_INFO, "LibreOffice", "Detached finished sal thread res=%d", res); #endif } |