diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-02-25 14:24:39 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-02-25 15:46:34 +0200 |
commit | e6cccd3df8397a07d6d5e403fa08cf0fd658b31e (patch) | |
tree | 347a477a413772f292fa6a833d3ca46b9b1e72da /config_host.mk.in | |
parent | 511b9fefe20d5a8a5ca003a7a60b0423d1d3e5be (diff) |
Use __android_log_print() instead of fprintf(stderr)
Printing to stderr is not at all any faster or more direct in an Android app
than just using the Android standard logging API.
Note that in a normal Android app, stdout and stderr are not connected
anywhere. (Just like in "GUI" subsystem (as opposed to "console") Windows
programs, heh.) It is our own code in sal/android/lo-bootstrap.c that
redirects stdout and stderr to pipes which we set up and which are read in a
separate thread that we start. The lines read are then, surprise, passed on to
__android_log_print(). Thus writes to stdout or stderr in "normal" LibreOffice
code aren't lost.
But in code that is by definition Android-specific it makes little sense to
use stdout and stderr.
(Much of the affected logging in this change is in NativeActivity-related #if
0'ed code, sure, so won't actually be reached.)
Change-Id: I409114f36f3e535bb144b4bde0d378110b3336a1
Diffstat (limited to 'config_host.mk.in')
0 files changed, 0 insertions, 0 deletions