mesa/main, android: Log errors to logcat
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13532>
This commit is contained in:
parent
9e82a56745
commit
6138b047e2
1 changed files with 8 additions and 0 deletions
|
|
@ -35,7 +35,11 @@
|
|||
|
||||
#include "context.h"
|
||||
#include "debug_output.h"
|
||||
#include "detect_os.h"
|
||||
|
||||
#if DETECT_OS_ANDROID
|
||||
# include <log/log.h>
|
||||
#endif
|
||||
|
||||
static FILE *LogFile = NULL;
|
||||
|
||||
|
|
@ -93,6 +97,10 @@ output_if_debug(const char *prefixString, const char *outputString,
|
|||
OutputDebugStringA(buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if DETECT_OS_ANDROID
|
||||
LOG_PRI(ANDROID_LOG_ERROR, prefixString ? prefixString : "MESA", "%s%s", outputString, newline ? "\n" : "");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue