summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorWuZhen <wuzhen@jidemail.com>2016-01-20 15:52:29 +0800
committerMauro Rossi <issor.oruam@gmail.com>2016-11-01 20:41:59 +0100
commit8fc46649adfa99b1f316bd34555a0ac8dd99737d (patch)
tree47d3e054a4255296d93c17e49677fe53d9b6bddb /src/gallium/auxiliary/util
parent34763549cd7de147951744d9f389b4ed5c6d686e (diff)
downloadexternal_mesa3d-8fc46649adfa99b1f316bd34555a0ac8dd99737d.zip
external_mesa3d-8fc46649adfa99b1f316bd34555a0ac8dd99737d.tar.gz
external_mesa3d-8fc46649adfa99b1f316bd34555a0ac8dd99737d.tar.bz2
android: print debug info to logcat
Redirect logs printed to stderr to logcat. NO_REF_TASK Tested: local run Change-Id: I58e3966a608af361b86c54b4c95a92561b711968 Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c
index dd3e167..6ccc4f6 100644
--- a/src/gallium/auxiliary/util/u_debug.c
+++ b/src/gallium/auxiliary/util/u_debug.c
@@ -55,7 +55,7 @@ void
_debug_vprintf(const char *format, va_list ap)
{
static char buf[4096] = {'\0'};
-#if defined(PIPE_OS_WINDOWS) || defined(PIPE_SUBSYSTEM_EMBEDDED)
+#if defined(PIPE_OS_WINDOWS) || defined(PIPE_OS_ANDROID) || defined(PIPE_SUBSYSTEM_EMBEDDED)
/* We buffer until we find a newline. */
size_t len = strlen(buf);
int ret = util_vsnprintf(buf + len, sizeof(buf) - len, format, ap);